View previous topic :: View next topic |
Author |
Message |
equaeghe l33t
Joined: 22 Feb 2005 Posts: 642
|
Posted: Tue Apr 25, 2006 7:08 pm Post subject: startup screen: how to get [ok] to the left (edge) |
|
|
Hi,
I was wondering if I could apply some sane typographical conventions to the startup screen, which currently (flushright) gives
Code: |
some startup message [ok]
some other startup message [ok]
|
For wide screens it is a pest to see which [ok] (or other message) belongs to which line, so a better solution would be (also applied in the better typeset books) to put the status message in closer contact to the message, like
Code: |
[ok] some startup message
[ok] some other startup message
|
Of course, it might be hard to write to the beginning of the (with some messages previous) line, and then a second, slightly less aesthetically pleasing alternative (raggedleft)
Code: |
some startup message [ok]
some other startup message [ok]
|
So, the question is, where do I have to change some settings to get the above, and which settings?
TIA,
Erik |
|
Back to top |
|
|
thpani Tux's lil' helper
Joined: 20 Mar 2006 Posts: 144 Location: Tulln, Austria
|
Posted: Wed Apr 26, 2006 10:25 am Post subject: |
|
|
you can find these functions in /etc/init.d/functions.sh |
|
Back to top |
|
|
roderick l33t
Joined: 11 Jul 2005 Posts: 908 Location: St. John's, NL CANADA
|
Posted: Wed Apr 26, 2006 4:49 pm Post subject: |
|
|
How about
Code: |
Message .............................................................................. [ OK ]
Message 2 ............................................................................ [ OK ]
|
In /etc/init.d/functions.sh change the following for the "..."
_________________ If God were a pickle, I'd still say "no pickle on my burger".
http://roderick-greening.blogspot.com/ |
|
Back to top |
|
|
equaeghe l33t
Joined: 22 Feb 2005 Posts: 642
|
Posted: Wed Apr 26, 2006 8:29 pm Post subject: |
|
|
thpani, roderick,
Thanks for pointing out '/etc/init.d/functions.sh'.
Now I realize that what I would like to do would probably require too much of a hack. I hadn't taken multiline e-messages into account enough: as the terminal output is line-based it is hard as is. But if one could retrace one's step on the console, it seems even harder because the number of extra lines might be difficult to ascertain.
On the other hand, what do I know about shell scripts and the console, it might be easy for someone who does
Anyhow, I'm dropping this...
BTW, roderick, the dotted line might help a bit if there were only one-line e-messages, but even then it is considered typographically questionable (by some, recently including me).
Erik |
|
Back to top |
|
|
roderick l33t
Joined: 11 Jul 2005 Posts: 908 Location: St. John's, NL CANADA
|
Posted: Fri Apr 28, 2006 12:37 pm Post subject: |
|
|
equaeghe wrote: | thpani, roderick,
Thanks for pointing out '/etc/init.d/functions.sh'.
Now I realize that what I would like to do would probably require too much of a hack. I hadn't taken multiline e-messages into account enough: as the terminal output is line-based it is hard as is. But if one could retrace one's step on the console, it seems even harder because the number of extra lines might be difficult to ascertain.
On the other hand, what do I know about shell scripts and the console, it might be easy for someone who does
Anyhow, I'm dropping this...
BTW, roderick, the dotted line might help a bit if there were only one-line e-messages, but even then it is considered typographically questionable (by some, recently including me).
Erik |
Definately, I was just pointing out an option. The practicality of which depends on how pretty/ugly you want the display. For multi-line messages, this definately turns ugly.
If all init scripts followed a particular standard, this could be overcome. However, I guess we aren't going to remove the multi-line output or make it anymore appealing anytime soon, so you are probably stuck with what we currently have. _________________ If God were a pickle, I'd still say "no pickle on my burger".
http://roderick-greening.blogspot.com/ |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|