Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
304a96e5
Kaydet (Commit)
304a96e5
authored
Haz 16, 2017
tarafından
Mariatta
Kaydeden (comit)
GitHub
Haz 16, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-30176: Add missing curses cell attributes constants (GH-1302). (GH-2241)
(cherry picked from commit
116dd5eb
)
üst
e9f4d8db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
9 deletions
+47
-9
curses.rst
Doc/library/curses.rst
+45
-9
NEWS
Misc/NEWS
+2
-0
No files found.
Doc/library/curses.rst
Dosyayı görüntüle @
304a96e5
...
...
@@ -1271,27 +1271,63 @@ The :mod:`curses` module defines the following data members:
A string representing the current version of the module. Also available as
:const:`__version__`.
Several constants are available to specify character cell attributes:
Some constants are available to specify character cell attributes.
The exact constants available are system dependent.
+------------------+-------------------------------+
| Attribute | Meaning |
+==================+===============================+
| ``A_ALTCHARSET`` | Alternate character set mode
.
|
| ``A_ALTCHARSET`` | Alternate character set mode
|
+------------------+-------------------------------+
| ``A_BLINK`` | Blink mode
.
|
| ``A_BLINK`` | Blink mode
|
+------------------+-------------------------------+
| ``A_BOLD`` | Bold mode
.
|
| ``A_BOLD`` | Bold mode
|
+------------------+-------------------------------+
| ``A_DIM`` | Dim mode
.
|
| ``A_DIM`` | Dim mode
|
+------------------+-------------------------------+
| ``A_NORMAL`` | Normal attribute. |
| ``A_INVIS`` | Invisible or blank mode |
+------------------+-------------------------------+
| ``A_NORMAL`` | Normal attribute |
+------------------+-------------------------------+
| ``A_PROTECT`` | Protected mode |
+------------------+-------------------------------+
| ``A_REVERSE`` | Reverse background and |
| | foreground colors. |
| | foreground colors |
+------------------+-------------------------------+
| ``A_STANDOUT`` | Standout mode |
+------------------+-------------------------------+
| ``A_UNDERLINE`` | Underline mode |
+------------------+-------------------------------+
| ``A_HORIZONTAL`` | Horizontal highlight |
+------------------+-------------------------------+
| ``A_LEFT`` | Left highlight |
+------------------+-------------------------------+
| ``A_LOW`` | Low highlight |
+------------------+-------------------------------+
| ``A_RIGHT`` | Right highlight |
+------------------+-------------------------------+
| ``A_TOP`` | Top highlight |
+------------------+-------------------------------+
| ``A_VERTICAL`` | Vertical highlight |
+------------------+-------------------------------+
| ``A_CHARTEXT`` | Bit-mask to extract a |
| | character |
+------------------+-------------------------------+
Several constants are available to extract corresponding attributes returned
by some methods.
+------------------+-------------------------------+
| Bit-mask | Meaning |
+==================+===============================+
| ``A_ATTRIBUTES`` | Bit-mask to extract |
| | attributes |
+------------------+-------------------------------+
| ``A_STANDOUT`` | Standout mode. |
| ``A_CHARTEXT`` | Bit-mask to extract a |
| | character |
+------------------+-------------------------------+
| ``A_UNDERLINE`` | Underline mode. |
| ``A_COLOR`` | Bit-mask to extract |
| | color-pair field information |
+------------------+-------------------------------+
Keys are referred to by integer constants with names starting with ``KEY_``.
...
...
Misc/NEWS
Dosyayı görüntüle @
304a96e5
...
...
@@ -286,6 +286,8 @@ Build
Documentation
-------------
-
bpo
-
30176
:
Add
missing
attribute
related
constants
in
curses
documentation
.
-
Issue
#
30052
:
the
link
targets
for
:
func
:`
bytes
`
and
:
func
:`
bytearray
`
are
now
their
respective
type
definitions
,
rather
than
the
corresponding
builtin
function
entries
.
Use
:
ref
:`
bytes
<
func
-
bytes
>`
...
...
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