Search the web
Sign In
New User? Sign Up
DesktopLinuxAsm
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Small bug, application fails to reset the color after exit.   Message List  
Reply | Forward Message #348 of 354 |
Re: [DesktopLinuxAsm] Small bug, application fails to reset the color after exit.

On Thursday 18 June 2009 10:20:25 rxantos wrote:
> asmedit, asmplan, asmproject, asmview and asmide leaves the console screen
> blue after its use. the problem corrects itself when a command with color
> is executed, but its anoying.
>
> asmmgr, asmfile correctly puts the screen back to its original colors.

Yes, terminal colors can be a problem and there are lots of options:

Some people set the color in their prompt string and put it in the
.bashrc file. There is a HOWTO on this somewhere.

Another approach is to build a small script that sets all the terminal
parmeters including color. This allows us to control line wrapping
and all the other features. We can then run the script whenever the
display is wrong.

Another approach is to use a file manager to run programs and let
it setup defaults after each program runs. I use this approach and
avoid most display setup problems.

The final approach is to rely on each program to restore the
defaults when it exits. The problem with this approach is that
each terminal has its own default color setting. It can be tedious
studying each terminal setup file to fix the color. On my system
a "xterm" gives a white-on-black screen and "konsole" gives a
black-on-white screen. It would be nice if each program could
read the current color and restore it, but I've not found a way to
do this. It appears the best we can do is restore the terminal
default.

So.. Asmtools should always restore the termnal
default as you suggest. Also, they need to clear the
screen and set other terminal defaults. Probably, the
best way to do all this is create a library function and
add it to the end of all programs.

It's on the todo list.

Thanks for the bug reprot.

all the best, jeff





Fri Jun 19, 2009 3:54 pm

rabidrecluse
Offline Offline
Send Email Send Email

Forward
Message #348 of 354 |
Expand Messages Author Sort by Date

asmedit, asmplan, asmproject, asmview and asmide leaves the console screen blue after its use. the problem corrects itself when a command with color is...
rxantos
Online Now
Jun 19, 2009
2:15 pm

... Yes, terminal colors can be a problem and there are lots of options: Some people set the color in their prompt string and put it in the .bashrc file....
linuxasm@...
rabidrecluse
Offline Send Email
Jun 20, 2009
12:14 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help