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
16b83b1f
Kaydet (Commit)
16b83b1f
authored
Nis 16, 2016
tarafından
Berker Peksag
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #24173: Fix curses.wrapper link in curses HOWTO
üst
ccff2bbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
curses.rst
Doc/howto/curses.rst
+6
-7
No files found.
Doc/howto/curses.rst
Dosyayı görüntüle @
16b83b1f
...
@@ -122,13 +122,12 @@ raises an uncaught exception. Keys are no longer echoed to the screen when
...
@@ -122,13 +122,12 @@ 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
importing the module :mod:`curses.wrapper`. It supplies a :func:`wrapper`
importing the :func:`curses.wrapper` function. It takes a callable and does
function that takes a callable. It does the initializations described above,
the initializations described above, also initializing colors if color support
and also initializes colors if color support is present. It then runs your
is present. It then runs your provided callable and finally deinitializes
provided callable and finally deinitializes appropriately. The callable is
appropriately. The callable is called inside a try-catch clause which catches
called inside a try-catch clause which catches exceptions, performs curses
exceptions, performs curses deinitialization, and then passes the exception
deinitialization, and then passes the exception upwards. Thus, your terminal
upwards. Thus, your terminal won't be left in a funny state on exception.
won't be left in a funny state on exception.
Windows and Pads
Windows and Pads
...
...
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