Show More
@@ -8,11 +8,23 b'' | |||||
8 | # This code is based on the Mark Edgington's crecord extension. |
|
8 | # This code is based on the Mark Edgington's crecord extension. | |
9 | # (Itself based on Bryan O'Sullivan's record extension.) |
|
9 | # (Itself based on Bryan O'Sullivan's record extension.) | |
10 |
|
10 | |||
11 | from i18n import _ |
|
11 | from __future__ import absolute_import | |
12 | import patch as patchmod |
|
|||
13 | import util, encoding |
|
|||
14 |
|
12 | |||
15 | import os, re, sys, struct, signal, tempfile, locale, cStringIO |
|
13 | import cStringIO | |
|
14 | import locale | |||
|
15 | import os | |||
|
16 | import re | |||
|
17 | import signal | |||
|
18 | import struct | |||
|
19 | import sys | |||
|
20 | import tempfile | |||
|
21 | ||||
|
22 | from .i18n import _ | |||
|
23 | from . import ( | |||
|
24 | encoding, | |||
|
25 | patch as patchmod, | |||
|
26 | util, | |||
|
27 | ) | |||
16 |
|
28 | |||
17 | # This is required for ncurses to display non-ASCII characters in default user |
|
29 | # This is required for ncurses to display non-ASCII characters in default user | |
18 | # locale encoding correctly. --immerrr |
|
30 | # locale encoding correctly. --immerrr | |
@@ -21,7 +33,8 b" locale.setlocale(locale.LC_ALL, '')" | |||||
21 | # os.name is one of: 'posix', 'nt', 'dos', 'os2', 'mac', or 'ce' |
|
33 | # os.name is one of: 'posix', 'nt', 'dos', 'os2', 'mac', or 'ce' | |
22 | if os.name == 'posix': |
|
34 | if os.name == 'posix': | |
23 | import curses |
|
35 | import curses | |
24 |
import fcntl |
|
36 | import fcntl | |
|
37 | import termios | |||
25 | else: |
|
38 | else: | |
26 | # I have no idea if wcurses works with crecord... |
|
39 | # I have no idea if wcurses works with crecord... | |
27 | try: |
|
40 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now