Skip to content

Commit 74f12f3

Browse files
committed
Minor documentation tweaks
1 parent a24252e commit 74f12f3

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed
-40.4 KB
Binary file not shown.

doc/scapy/usage.rst

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,13 @@ some features will not be available::
2727

2828
The basic features of sending and receiving packets should still work, though.
2929

30-
31-
Customizing the Terminal
32-
------------------------
33-
34-
Before you actually start using Scapy, you may want to configure Scapy to properly render colors on your terminal. To do so, set ``conf.color_theme`` to one of of the following themes::
35-
36-
DefaultTheme, BrightTheme, RastaTheme, ColorOnBlackTheme, BlackAndWhite, HTMLTheme, LatexTheme
37-
38-
For instance::
39-
40-
conf.color_theme = BrightTheme()
41-
42-
.. image:: graphics/animations/animation-scapy-themes-demo.gif
43-
:align: center
44-
45-
Other parameters such as ``conf.prompt`` can also provide some customization. Note Scapy will update the shell automatically as soon as the ``conf`` values are changed.
46-
47-
4830
Interactive tutorial
4931
====================
5032

5133
This section will show you several of Scapy's features with Python 2.
5234
Just open a Scapy session as shown above and try the examples yourself.
5335

36+
.. note:: You can configure the Scapy terminal by modifying the ``~/.config/scapy/prestart.py`` file.
5437

5538
First steps
5639
-----------

scapy/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def _validate_local(k):
141141
# default interpreter
142142
conf.interactive_shell = "auto"
143143
144-
# color theme
144+
# color theme (DefaultTheme, BrightTheme, ColorOnBlackTheme, BlackAndWhite, ...)
145145
conf.color_theme = DefaultTheme()
146146
147147
# force-use libpcap

0 commit comments

Comments
 (0)