Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
11ee31ab
Commit
11ee31ab
authored
Mar 25, 2012
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Closes #14401: fix typos in curses howto.
parent
8e6fe648
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/howto/curses.rst
Doc/howto/curses.rst
+3
-3
No files found.
Doc/howto/curses.rst
View file @
11ee31ab
...
@@ -118,7 +118,7 @@ function to restore the terminal to its original operating mode. ::
...
@@ -118,7 +118,7 @@ function to restore the terminal to its original operating mode. ::
A common problem when debugging a curses application is to get your terminal
A common problem when debugging a curses application is to get your terminal
messed up when the application dies without restoring the terminal to its
messed up when the application dies without restoring the terminal to its
previous state. In Python this commonly happens when your code is buggy and
previous state. In Python this commonly happens when your code is buggy and
raises an uncaught exception. Keys are no longer
be
echoed to the screen when
raises an uncaught exception. Keys are no longer echoed to the screen when
you type them, for example, which makes using the shell difficult.
you type them, for example, which makes using the shell difficult.
In Python you can avoid these complications and make debugging much easier by
In Python you can avoid these complications and make debugging much easier by
...
@@ -271,7 +271,7 @@ application are commonly shown in reverse video; a text viewer may need to
...
@@ -271,7 +271,7 @@ application are commonly shown in reverse video; a text viewer may need to
highlight certain words. curses supports this by allowing you to specify an
highlight certain words. curses supports this by allowing you to specify an
attribute for each cell on the screen.
attribute for each cell on the screen.
An attribute is a integer, each bit representing a different attribute. You can
An attribute is a
n
integer, each bit representing a different attribute. You can
try to display text with multiple attribute bits set, but curses doesn't
try to display text with multiple attribute bits set, but curses doesn't
guarantee that all the possible combinations are available, or that they're all
guarantee that all the possible combinations are available, or that they're all
visually distinct. That depends on the ability of the terminal being used, so
visually distinct. That depends on the ability of the terminal being used, so
...
@@ -300,7 +300,7 @@ could code::
...
@@ -300,7 +300,7 @@ could code::
curses.A_REVERSE)
curses.A_REVERSE)
stdscr.refresh()
stdscr.refresh()
The curses library also supports color on those terminals that provide it
,
The
The curses library also supports color on those terminals that provide it
.
The
most common such terminal is probably the Linux console, followed by color
most common such terminal is probably the Linux console, followed by color
xterms.
xterms.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment