problme de traduction :
rows = lignes cols = colonnes darcs-hash:20051028220455-4ec08-1c2c64e5ab85704d5dd9eb409104512d136263aa.gz
This commit is contained in:
parent
b3a3000b85
commit
9e86726964
1 changed files with 3 additions and 2 deletions
|
@ -128,7 +128,8 @@ def tableau(largeurs,data) :
|
||||||
def get_screen_size():
|
def get_screen_size():
|
||||||
"""Retourne la taille de l'écran.
|
"""Retourne la taille de l'écran.
|
||||||
|
|
||||||
Sous la forme d'un tuble (colonnes, lignes)"""
|
Sous la forme d'un tuble (lignes, colonnes)"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from termios import TIOCGWINSZ
|
from termios import TIOCGWINSZ
|
||||||
from struct import pack, unpack
|
from struct import pack, unpack
|
||||||
|
@ -137,7 +138,7 @@ def get_screen_size():
|
||||||
rows, cols = unpack("HHHH", ioctl(sys.stdout.fileno(), TIOCGWINSZ, s))[:2]
|
rows, cols = unpack("HHHH", ioctl(sys.stdout.fileno(), TIOCGWINSZ, s))[:2]
|
||||||
return (rows, cols)
|
return (rows, cols)
|
||||||
except:
|
except:
|
||||||
return (80, 24)
|
return (24, 80)
|
||||||
|
|
||||||
def prompt(prompt, defaut=''):
|
def prompt(prompt, defaut=''):
|
||||||
""" Pose la question prompt, retourne la réponse """
|
""" Pose la question prompt, retourne la réponse """
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue