LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-15-2020, 07:58 PM   #1
plu
LQ Newbie
 
Registered: Apr 2020
Posts: 2

Rep: Reputation: Disabled
Recover tput terminal settings - specifically for Cygwin


I can't find the exactly applicable forum group, since there's no Cygwin distribution group, so am posting in the General section.

I believe the use of the "tput" utility is only one-way in regards to setting up the terminal, so am having major problems getting my serial port to work properly again (on Cygwin).

On Cygwin (2.6.1), I ran "tput reset" in the process of trying to clean up terminal operations, and this totally messed up my previously working set-up. Apparently, the default terminal setup (string) on Cygwin does not agree with the tput settings for TERM=xterm. So, when I ran "tput reset" the terminal got configured in some odd way such that I/O to some COM/tty port no longer works (seems to be character verses line processing, or some such thing). Minicom to that serial port, which worked fine before, doesn't work any more; seems user-entered text doesn't arrive at the remote end until the user exits Minicom.

I have tried "tput init" and similar things but they don't revert the terminal to the old way.

I have other Win/Cygwin systems that still have functional terminal set-ups (where I never ran "tput reset"), so one would think there should be some way of querying the terminal for its current operating settings (rather than the tput database, which is apparently wrong). But, it seems that since the terminal can only be "configured" item-by-item, there is no way to get the full configuration information from the terminal itself. If getting the operating settings (string) is possible, then I would be able to transfer that string to the broken system and fix its problem.

Can someone offer me some ideas on how to fix my problem?

Thank you very much in advance.
 
Old 04-16-2020, 02:37 AM   #2
plu
LQ Newbie
 
Registered: Apr 2020
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by plu View Post
I can't find the exactly applicable forum group, since there's no Cygwin distribution group, so am posting in the General section.

I believe the use of the "tput" utility is only one-way in regards to setting up the terminal, so am having major problems getting my serial port to work properly again (on Cygwin).

On Cygwin (2.6.1), I ran "tput reset" in the process of trying to clean up terminal operations, and this totally messed up my previously working set-up. Apparently, the default terminal setup (string) on Cygwin does not agree with the tput settings for TERM=xterm. So, when I ran "tput reset" the terminal got configured in some odd way such that I/O to some COM/tty port no longer works (seems to be character verses line processing, or some such thing). Minicom to that serial port, which worked fine before, doesn't work any more; seems user-entered text doesn't arrive at the remote end until the user exits Minicom.

I have tried "tput init" and similar things but they don't revert the terminal to the old way.

I have other Win/Cygwin systems that still have functional terminal set-ups (where I never ran "tput reset"), so one would think there should be some way of querying the terminal for its current operating settings (rather than the tput database, which is apparently wrong). But, it seems that since the terminal can only be "configured" item-by-item, there is no way to get the full configuration information from the terminal itself. If getting the operating settings (string) is possible, then I would be able to transfer that string to the broken system and fix its problem.

Can someone offer me some ideas on how to fix my problem?

Thank you very much in advance.
Fixed problem. The "tput reset" somehow changed the flow control settings, so the
communication was blocked. Had to fix appropriate settings in Minicom and via
stty to ignore hardware flow control.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tput davender84 Linux - General 2 02-27-2009 03:33 AM
regarding use of fuctional keys with tput davender84 Linux - General 0 02-23-2009 02:01 AM
tput console display problems onykage Linux - Software 1 11-30-2008 09:53 AM
LXer: Tput: Add some spice to your UNIX shell scripts LXer Syndicated Linux News 0 04-12-2008 04:50 AM
tput - determining window size subu_s Programming 2 12-06-2004 10:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration