Ticket #138 (closed enhancement: fixed)

Opened 2 months ago

Last modified 2 months ago

Color theme for dark backgrounds

Reported by: Dirk Loss Assigned to: pbi
Priority: low Milestone: mainstream
Component: Scapy Version: 2.0.0.x
Keywords: color theme Cc:

Description

If your console has a black background, the default color theme is not very readable. Here's a special theme with bright colors and enough contrast.

It has been the default in the Windows port for some time and could be added as to the Unix version as well for users who prefer dark background colors on their console.

Examples can be seen in the WindowsInstallationGuide.

class ColorOnBlackTheme(AnsiColorTheme):
    """Color theme for black backgrounds"""

    style_normal = Color.normal
    style_prompt = Color.green+Color.bold
    style_punct = Color.normal
    style_id = Color.green
    style_not_printable = Color.black+Color.bold
    style_layer_name = Color.yellow+Color.bold
    style_field_name = Color.cyan
    style_field_value = Color.purple+Color.bold
    style_emph_field_name = Color.cyan+Color.bold
    style_emph_field_value = Color.red+Color.bold
    style_packetlist_name = Color.black+Color.bold
    style_packetlist_proto = Color.yellow+Color.bold
    style_packetlist_value = Color.purple+Color.bold
    style_fail = Color.red+Color.bold
    style_success = Color.green
    style_even = Color.black+Color.bold
    style_odd = Color.grey
    style_opening = Color.yellow
    style_active = Color.grey+Color.bold
    style_closed = Color.black+Color.bold
    style_left = Color.cyan+Color.bold
    style_right = Color.red+Color.bold

Attachments

Change History

10/01/08 19:12:43 changed by pbi

  • status changed from new to closed.
  • resolution set to fixed.

Added in [12d8149659f0].


Add/Change #138 (Color theme for dark backgrounds)




Change Properties
Action