473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Python and VT100

Using Python (Command line version, not IDLE, nor pythonwin)

With Linux, print "\033[33mHello" prints a brown hello. Fine!
With Windows, the VT100 sequence seems to be unknown?
Why? and how can I correct that?

Thanks
Jul 18 '05 #1
2 5253
On Sat, 5 Mar 2005 22:10:38 +0100, rumours say that "Dominique Bouré"
<d.*****@free.fr> might have written:
Using Python (Command line version, not IDLE, nor pythonwin)

With Linux, print "\033[33mHello" prints a brown hello. Fine!
With Windows, the VT100 sequence seems to be unknown?
Why? and how can I correct that?


(Sigh)

"Why?"

I don't think there ever was a colour VT100, BICBW. I don't know about colour
VT220 either. I once worked with a colour VT320.

Linux consoles simulate some "ANSI" terminal similar to the VT's mentioned above
for historical reasons. It's a quirk maybe; it's not a mandatory feature for
every computer system out there (hint: what was the escape sequence to print a
brown hello on a Macintosh with MacOS 9 and earlier?)
"and how can I correct that?"

Your car does run on charcoal either, but you don't *correct* that (ie it's not
part of the design of the car).

There was once an ANSI.SYS (on MS DOorS days, that is :) that you could load in
your CONFIG.SYS file and then MS-DOS command line recognized ANSI escape
sequences. I don't know if it still exists.

And I just checked on this laptop with Windows XP and it exists! (exclamation
most sincere). Try googling for its use.
http://en.wikipedia.org/wiki/Vt100

http://en.wikipedia.org/wiki/Ansi.sys
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
Jul 18 '05 #2
On Sat, 5 Mar 2005 22:10:38 +0100, rumours say that "Dominique Bouré"
<d.*****@free.fr> might have written:
Using Python (Command line version, not IDLE, nor pythonwin)

With Linux, print "\033[33mHello" prints a brown hello. Fine!
With Windows, the VT100 sequence seems to be unknown?
Why? and how can I correct that?

Thanks

On Sat, 5 Mar 2005 22:10:38 +0100, rumours say that "Dominique Bouré"
<d.*****@free.fr> might have written:
Using Python (Command line version, not IDLE, nor pythonwin)

With Linux, print "\033[33mHello" prints a brown hello. Fine!
With Windows, the VT100 sequence seems to be unknown?
Why? and how can I correct that?


(Sigh)

"Why?"

I don't think there ever was a colour VT100, BICBW. I don't know about colour
VT220 either. I once worked with a colour VT320.

Linux consoles simulate some "ANSI" terminal similar to the VT's mentioned above
for historical reasons. It's a quirk maybe; it's not a mandatory feature for
every computer system out there (hint: what was the escape sequence to print a
brown hello on a Macintosh with MacOS 9 and earlier?)
"and how can I correct that?"

Your car does not run on charcoal either, but you don't *correct* that (ie it's
not part of the design of the car).

There was once an ANSI.SYS (on MS DOorS days, that is :) that you could load in
your CONFIG.SYS file and then MS-DOS command line recognized ANSI escape
sequences. I don't know if it still exists.

And I just checked on this laptop with Windows XP and it exists! (exclamation
most sincere). Try googling for directions how to load it.

Otherwise, if willing to drop compatibility with escape sequences, you can use
WConio:

http://newcenturycomputers.net/projects/wconio.html
Other related stuff:

http://en.wikipedia.org/wiki/Vt100

http://en.wikipedia.org/wiki/Ansi.sys
--
TZOTZIOY, I speak England very best.
"Be strict when sending and tolerant when receiving." (from RFC1958)
I really should keep that in mind when talking with people, actually...
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

50
by: Edward K. Ream | last post by:
I would like to say a few (actually more than a few) words here about some recent discoveries I have made concerning the interaction of Leo and Python. If you don't want to hear an inventor enthuse...
1
by: Gabriel Cooper | last post by:
I'm running redhat 9 with python 2.3.3 and when I'm in gnome-terminal and inside the python interpreter I can't use the arrow keys anymore. They simply show ^[[A, ^[[B, etc. It doesn't appear to...
4
by: Bill Davy | last post by:
To make life easier for my users, I'd like to colour my prompt string (as handed to raw_input()) a different colour to that produced by print. I'm using Python 2.4.1 and IDLE 1.1.1 on Windows XP. ...
4
by: fatp | last post by:
I know how to use telnet in vb.net but now I need to connect a dial-up modem first using vt100. Is there an built-in api for this?
1
by: Free Doc | last post by:
Hi, I need to read the keyboard input without waiting for the ENTER key to be pressed in a VT100 emulation. I use an ANSI C compiler, so the getch()(and similar) needs the ENTER too. Please,...
48
by: Daniele C. | last post by:
As soon as my sourceforge.net project gets approved, I am going to build a ncurses port to win32 bindable to sockets, e.g. allowing VT100/ANSI terminals and the creation of simple terminal servers...
0
by: malahal | last post by:
I am planning to write a very simple python script that displays files based on user input. E.g. I need to display f1.msg file if the user presses <F1key, f2.msg file if the user presses <F2key. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.