Serial terminal emulation - bad row column count ?


 
Thread Tools Search this Thread
Operating Systems Linux Serial terminal emulation - bad row column count ?
# 1  
Old 06-14-2010
Serial terminal emulation - bad row column count ?

Hello,

I connect to linux using serial cable from windows machine.
I use putty as serial terminal emulator.

Everything works fine except programs which scroll text - man, more, less, vi, etc.. These programs asumme my terminal size is 80cols x 24rows (my putty window size is more than that, and I resize putty window sometimes)
The cause of this is that putty does not transfer cols rows count correctly:
Code:
# stty -a
speed 38400 baud; rows 0; columns 0; line = 0;

So programs use default 80x24 because actual col/row settings are zeros.
In contrast if I use the same putty(same settings) but ssh connection - I can clearly see how col/row settings change when I resize my putty window - and col/row numbers are correct. (so maybe not putty's fault?)

Anyway workaroud would be to freeze putty window size and insert stty command into startup scripts which sets correct col/row sizes of current putty window (I will be unable to resize putty window in this case).

Anyone knows the way to configure putty(serial connection) to transfer correct col/rows to linux even when putty window is resized dynamically - like using putty ssh?

thnaks
Vilius
# 2  
Old 06-15-2010
You might be getting a different terminal type over serial than over ssh. Resizing the terminal wouldn't generally make sense for a hardwired serial device.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Copy columns from one file into another and get sum of column values and row count

I have a file abc.csv, from which I need column 24(PurchaseOrder_TotalCost) to get the sum_of_amounts with date and row count into another file say output.csv abc.csv- UTF-8,,,,,,,,,,,,,,,,,,,,,,,,, ... (6 Replies)
Discussion started by: Tahir_M
6 Replies

2. UNIX for Dummies Questions & Answers

Terminal emulation OSX Vs. Solaris 11

I am using Terminal on an OSX system to access and edit crontab files on a 'headless' Solaris 11 server. Crontab -e on OSX invokes vi as the editor, which is fine, but I am getting unexpected characters on keystrokes and have to abort the edit. If this is an emulation issue, would someone please... (1 Reply)
Discussion started by: SmokeyJoe
1 Replies

3. Programming

printer link to terminal emulation

have the following lines in .bash_profile. "ln-s /dev/ttyp0 /dev/lpw10" and ln -s /dev/ttyp0 /dev/lpc10" this allows a terminal emulation running on xp to print locally. I would like to capture the print file and store the output in a directory. Any ideas as to how to capture the print output?... (2 Replies)
Discussion started by: petercp
2 Replies

4. Solaris

Terminal Emulation Issue

I am having issues with installation of Sterling-Gentran:Server for UNIX 6.1. The issue within the secadmin setup. I can get into the Security Admin Setup Screens and can navigate within but cannot reply to a popup screen (the software is asking me to confirm "YES" or "NO" and none of the keys on... (6 Replies)
Discussion started by: oakbob817
6 Replies

5. Shell Programming and Scripting

Count the number or row with same value in a column

This is the source file, we called it errorlist.out 196 server_a server_unix_2 CD 196 server_b server_win_1 CD 196 server_c server_win_2 CD 196 server_bd server_unix_2 CD 196 server_d server_unix_2 CD 196 server_es server_win_1 CD 196 ... (14 Replies)
Discussion started by: sQew
14 Replies

6. UNIX for Advanced & Expert Users

Bad emulation

I am using mpc8xx processor with linux-2.4.20 kernel. These prints are getting flooded to my console almost consistenly. 14 06:29:17 MC4L-TP01 syslog.warn klogd: pte @ 0x10113d88: (0xc51cc100)->(0xc4bd144c)->0x01eec889 Oct 14 06:29:17 MC4L-TP01 syslog.warn klogd: RPN: 01eec PP: 2 SPS: 1 SH:... (1 Reply)
Discussion started by: subratasaharia
1 Replies

7. SCO

Help: Terminal Emulation for SCO Unix...

Question from a newbie: We are running SCO Unix, and are using Century Software Windows Terminal Emulation “Term for Windows” for Win95 v6.3.9b. It used to work fine when we had Win98 on our machines, but now we are updating them with Win2000/XP. This WinTerm works fine on some machines, which... (9 Replies)
Discussion started by: fasal
9 Replies

8. BSD

ls -G in terminal emulation

Hi ! As everyone, i installed my system and started "personalizing" it. One of the adjustments was creating an alias in /etc/profile fo ls, so when I type ls it is running ls -G so i can see a colored output. Everything is ok, but after I configured my system to start in X by default (kdm as... (2 Replies)
Discussion started by: Sergiu-IT
2 Replies

9. UNIX for Dummies Questions & Answers

Terminal Emulation

Hello all, Am new to the forum and hope this post meets the requirements. This post will be rather lengtly but needs to be to explain the problem. I have two computers running Windows 2000 Pro. I travel for a living and use a terminal emulation program called STEP to connect to our Unix... (2 Replies)
Discussion started by: skids
2 Replies

10. Programming

Terminal Emulation

Hi , I am working on SCO Unix who needs to know some basics concepts about how to write a program that will capture the input , output of one terminal to another ie whatever is being typed as input or echoed as output to terminal say tty02 shall be automatically be falshed to another terminal say... (1 Reply)
Discussion started by: S.P.Prasad
1 Replies
Login or Register to Ask a Question