[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#312687: linux terminal doesn't reset colors on logout



Package: kernel-image-2.6-386
Version: 101
Severity: wishlist

 Hello kernel maintainers,

   when i log in on a VT as root and su to siward,
     then siward's .bashrc changes colors of text in VT,
   if siward exits, so i become root again, colors remain those of siward.

 Exiting, so login prompt comes up, doesn't reset colors either,
   so it looks like it could be abused on real terminals  to
     set color to black on black,
   but i'm not sure,  as i don't have real terminals.

 This is not really a problem for me,
   but it seems kinda stupid to reset colors as part of PS1,
   so maybe you would like to improve this ?
 Maybe with environment variables TERMFG and TERMBG,
   each set to ascii of hex values of rgb of color
   and terminal setting these to correct values whenever color changes,
      and resetting colors when a subshell exits
      but resetting envvars to new colors when a normal program exits,
        to allow color-setting programs ?
 I hope this is doable.
 Anyway, a reset to standard (white on black) for login should be possible.


 While i'm talking to you, i would like to mention that
   i am getting errorrmessages like :
  "atkbd.c: spurious ack on atikbd0/seria0.
   Some program, like XFree86, might be trying to access hardware directly."
 But it's not XFree doing that, it's mc
  (which i invoke and quit immediately, because it resets colors).
 And you'll need to change the 'XFree86' anyway, when etch uses X.org .


 If you decide not to fix this (it's only a feature request after all),
   could you point me to the sources that control
   linux terminal's colour behaviour ?


 Anyway, thanks for maintaining the thing
    (and all the other things you maintain ofcourse).

 have fun !

   Siward de Groot
   (home.wanadoo.nl/siward)



 



Reply to: