Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
2
answers
174
views
How do you select an option from a multiple option interatcive installer?
I'm sure it's obvious, but I have been pressing every key and can't select the "SDL12 and OpenAL source code" option in this installer. Pressing Enter/Return does either the OK or Cancel action. [![Screenshot of interactive installer with multiple options to choose from][1]][1] I have no idea what t...
I'm sure it's obvious, but I have been pressing every key and can't select the "SDL12 and OpenAL source code" option in this installer. Pressing Enter/Return does either the OK or Cancel action.
I have no idea what to call these things so it's been really hard to find the answer I need. It was a challenge to even come up with tags for this place.
What do I do to / how do I select the "SDL12 and OpenAL source code" option?
(and optionally, what in the world was I *supposed to search* to find the answer?)

timi
(3 rep)
Jun 2, 2023, 05:25 AM
• Last activity: Jun 2, 2023, 11:39 AM
2
votes
0
answers
96
views
A decent text-user-interface stopwatch?
I'm looking for something like this: [![enter image description here][1]][1] but preferably * [TUI][2] (ncurses-based), * with support for multiple stopwatches (and giving names to them) * able to survive being closed and re-opened (a stopwatch only needs to remember when it was started) (Gnome-cloc...
I'm looking for something like this:
but preferably
* TUI (ncurses-based),
* with support for multiple stopwatches (and giving names to them)
* able to survive being closed and re-opened (a stopwatch only needs to remember when it was started)
(Gnome-clocks above only gets 1/3 here. 2/3 would be an improvement for me)

MWB
(133 rep)
Oct 15, 2021, 08:03 PM
3
votes
1
answers
150
views
Which terminals or terminal emulators support hardware windows?
terminfo(5) manual page describes a set of capabilities `wnum` (maximum number of definable windows), `cwin` (define a window), `wingo` (go to window), `wind` (resize current window), but only one terminal definition in terminfo master file uses any of them (tvi9065; it sets wnum=0). Do any hardware...
terminfo(5) manual page describes a set of capabilities
wnum
(maximum number of definable windows), cwin
(define a window), wingo
(go to window), wind
(resize current window), but only one terminal definition in terminfo master file uses any of them (tvi9065; it sets wnum=0).
Do any hardware terminals, or terminal emulators, exist that support these capabilities?
sendmoreinfo
(2711 rep)
Sep 12, 2017, 06:18 PM
• Last activity: Sep 6, 2021, 09:12 PM
1
votes
2
answers
1474
views
Problem typing @ character at command prompt under HP-UX
Under HP-UX Model :9000/800 O/S = B.11.11 Problem to type @ character on command prompt as well as in vi editor also. When I try to type "@" this character I won't get anything. line for export command i need to use @.
Under HP-UX Model :9000/800 O/S = B.11.11
Problem to type @ character on command prompt as well as in vi editor also.
When I try to type "@" this character I won't get anything.
line for export command i need to use @.
user110943
(11 rep)
Apr 18, 2015, 09:16 AM
• Last activity: Aug 23, 2021, 01:59 PM
1
votes
1
answers
489
views
Is it possible to edit a file in whiptail?
For a new TUI, I want to employ whiptail or dialog to make it a bit more visually appealing. Afaik, whiptail is more widely available and even preinstalled on many systems, which is a good reason to use it. (Is that still true?) But a nice-to-have feature would be to be able to seamlessly edit files...
For a new TUI, I want to employ whiptail or dialog to make it a bit more visually appealing. Afaik, whiptail is more widely available and even preinstalled on many systems, which is a good reason to use it. (Is that still true?)
But a nice-to-have feature would be to be able to seamlessly edit files in the TUI. In dialog, there is the option
--editbox
.
**Is there something similar for whiptail?** I couldn't find it in the man pages, but it would not be the first time, that I am just not seeing something O_o .
steffen
(135 rep)
Feb 23, 2021, 08:37 PM
• Last activity: Feb 23, 2021, 09:19 PM
1
votes
1
answers
398
views
How to show a line number in bash TUI?
I'm trying to add support for line number on a bash [project][1] i like (mainly as a fun exercise). To start, i looked into the function that was setting up the status line (since i thought of inspiring myself from it, since it would be printing a constant line, at the bottom of the window, horizont...
I'm trying to add support for line number on a bash project i like (mainly as a fun exercise).
To start, i looked into the function that was setting up the status line (since i thought of inspiring myself from it, since it would be printing a constant line, at the bottom of the window, horizontally):
status_line() {
# '\e7' : Save cursor position.
# This is more widely supported than '\e[s'.
# '\e[%sH' : Move cursor to bottom of the terminal.
# '\e[30;41m' : Set foreground and background colors.
# '%*s' : Insert enough spaces to fill the screen width.
# This sets the background color to the whole line
# and fixes issues in 'screen' where '\e[K' doesn't work.
# '\r' : Move cursor back to column 0 (was at EOL due to above).
# '\e[m' : Reset text formatting.
# '\e[%sH\e[K' : Clear line below status_line.
# '\e8' : Restore cursor position.
# This is more widely supported than '\e[u'.
buffer_name="${file_name:-New Buffer}"
(( modified == 1 )) && buffer_name+="*"
counter="Ln $((file_line+1)), Col $((file_column+1))"
printf "\e7\e[%sH%s%*s%s\e[%sH\e[K\e8"\
"$((LINES-1))"\
"[$buffer_name]"\
"$((COLUMNS-${#buffer_name}-${#counter}-4))" ""\
"[$counter]"\
"$LINES"
}
A part of the project's code. Now I'm aware i could just use \n
and replace the H
in the printf statements to something that would make it work vertically (since i need a line number, it would obviously be preferable *vertically*), but I don't know much about printf syntax (in this context, not talking about the C function, but what is used in shell script).
Any way i could do it here vertically? (don't necessarily need the full feature made, just some indication/hint or implementation that work without doing a for-loop/loop).
I'm aware i could just do something along the line of:
printf '%s\n' {1..10}
But I'm not sure how to make it work horizontally, without rewriting/writing over the text displayed when a file is opened (contrary to what the status line is doing, which work as a separate text object, from my own understanding).
Nordine Lotfi
(2472 rep)
Nov 1, 2020, 03:09 PM
• Last activity: Nov 1, 2020, 03:28 PM
10
votes
5
answers
6348
views
How to show live results on terminal from a shell script?
How can I write a shell script that shows the results in real time? Something like the [`top`][1] command that updates the results after some fixed intervals of time. ![alt text][2] [1]: http://en.wikipedia.org/wiki/Top_(software) [2]: https://i.sstatic.net/ZGsik.gif
How can I write a shell script that shows the results in real time?
Something like the
top
command that updates the results after some fixed intervals of time.

Lazer
(36085 rep)
Aug 28, 2010, 05:19 PM
• Last activity: May 5, 2020, 02:00 PM
4
votes
2
answers
556
views
How to input unicode symbols with search?
Often times, I use unicode symbols (emoji, blocks, arrows, math...) in my typing, but it's very annoying to search-copy-paste them from the interweb, and it's also quite tedious to customize the Compose key (ensure clash are not used, find a mnemonic, edit config, restart). So, I'm looking for a way...
Often times, I use unicode symbols (emoji, blocks, arrows, math...) in my typing, but it's very annoying to search-copy-paste them from the interweb, and it's also quite tedious to customize the Compose key (ensure clash are not used, find a mnemonic, edit config, restart).
So, I'm looking for a way to quicky insert unicode symbols by searching while typing. Is there a way to do that?
For example, say that I want to write
𝛼 = 𝛼 + 1
. I would like to press a magic key (like Compose), write "alfa" or "alpha" down and get the suggestion for 𝛼
and 𝛢
(capital 𝛼), and maybe even other symbols related by relevance. This means that, in any application I am using, some kind of popup window should appear and help me search the right symbol.
I recall of having seen something similar in the past for people writing in japanese or chinese, but I don't know what could work for unicode.
What could I use to quickly search unicode entry points and insert them in the text I'm writing?
ARDVL
(175 rep)
Apr 26, 2020, 03:43 PM
• Last activity: Apr 29, 2020, 11:26 PM
2
votes
3
answers
13437
views
Best way to create table-like CLI display in Bash?
I'm working on a Bash script for massive USB flash memory testing (using `f3` under the hood). I need to display a table-like interface with multiple columns and cells. Currently I'm using `printf` with and it looks like this: [![enter image description here][1]][1] I have a separate function runnin...
I'm working on a Bash script for massive USB flash memory testing (using
I have a separate function running for each drive that write out text to a log file. These log files are parsed to display the information to the user.
As you can see some rows have offsets that shouldn't be there but I can't get rid of them It doesn't seem to be caused by long strings being printed. I don't know what's this.
Another problems I have is the refresh time and the need to manually clear and redraw the whole screen at times, due to ocasional stderr messages appearing there from
f3
under the hood). I need to display a table-like interface with multiple columns and cells.
Currently I'm using printf
with and it looks like this:

grep
or cat
when some files don't read properly.
I'm currently doing a partial rewrite of this script and I what I could od better in regard to printing out the data on the screen. I thought about looking into ncurses
but that seems like a bit too complicated thing and would probably make things way to complex for me to maintain.
I wonder if there is a way for me to dump the echo
or print
commands to a text file and then execute that all at once to basically have a text "backbuffer" so my refresh can be more consistent and faster?
I would also want to be able to listen for user's keystrokes and react to that in the background but that's not a priority.
Maybe there's a better way to do this kind of thing in Bash, that I don't know of?
unfa
(1825 rep)
Nov 29, 2017, 11:43 AM
• Last activity: Apr 13, 2020, 08:01 PM
68
votes
4
answers
77920
views
How do I create a terminal-based GUI?
I'm looking to create a terminal-based environment to adapt my [Bash][1] script into. I want it to look like this: [![Debian install][2]][2] [1]: http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29 [2]: https://i.sstatic.net/x69Sb.png
I'm looking to create a terminal-based environment to adapt my Bash script into. I want it to look like this:

tempforFind Me In The Woods
(783 rep)
May 26, 2016, 09:33 PM
• Last activity: Nov 27, 2019, 06:11 AM
1
votes
1
answers
3097
views
Change keyboard layout by shortcut (text mode only)
I've got brand new gentoo on my box. No X installed. I want to know correct way to setup changing keyboard layout while in text mode. (Basically I need a simple way of cycling between three keyboard layouts)
I've got brand new gentoo on my box. No X installed. I want to know correct way to setup changing keyboard layout while in text mode. (Basically I need a simple way of cycling between three keyboard layouts)
d3day
(135 rep)
Feb 24, 2016, 08:54 PM
• Last activity: Oct 23, 2019, 02:15 PM
1
votes
0
answers
37
views
Dual display setup with Debian 9 text interface
I have a NCR EPoS terminal that has a dvi interface for the main screen and a vga for the secondary screen. Is it possible to have one application running in full screen on the dvi display and one on the vga display and have the two apps tall to each other. I am trying not to use any desktop environ...
I have a NCR EPoS terminal that has a dvi interface for the main screen and a vga for the secondary screen.
Is it possible to have one application running in full screen on the dvi display and one on the vga display and have the two apps tall to each other.
I am trying not to use any desktop environment as I want to have all the ram for the OS and my software
Is what I want to do acually possible with the text interface of Debian or can this only be done in the graphical desktop
Also with Debian 9 where do I put a my command to start my till software.
Normally I would use ./NPoS/NPoS to start the software
Andrew Gable
(41 rep)
Mar 20, 2019, 09:22 PM
5
votes
3
answers
13493
views
Chat from one system to another in a terminal
I would like send a chat message (like mail chat) between two systems, the systems are inter-connected proxy IP.
I would like send a chat message (like mail chat) between two systems, the systems are inter-connected proxy IP.
Sant
(51 rep)
Jul 15, 2015, 06:27 AM
• Last activity: Mar 25, 2018, 01:45 AM
6
votes
2
answers
6128
views
Using curses with Linux console
I'm trying to use Curses on Fedora 12 to output status information to a VT (one of the terminals you can get to by pressing Ctrl + Alt + Fx ). When I start up my application on one of VTs (`$TERM=linux`) the lines for the boxes come out as the characters such as `j`, `q`, `k` and a few other charact...
I'm trying to use Curses on Fedora 12 to output status information to a VT (one of the terminals you can get to by pressing Ctrl+Alt+Fx).
When I start up my application on one of VTs (
$TERM=linux
) the lines for the boxes come out as the characters such as j
, q
, k
and a few other characters. Yet when I start it within a terminal window ($TERM=xterm
) everything displays as it should.
Can someone explain to me what I need to do to get the VT output to appear as the xterm? Is there a terminal setting that I can set from within my program to cause the output to be correct?
Joe
(61 rep)
Jul 26, 2011, 11:47 AM
• Last activity: Sep 30, 2017, 05:33 PM
9
votes
3
answers
9009
views
What is the terminal's graphic API?
How can certain programs set background and font colors, write characters to the same location on screen (e.g. to the third row, fifth column) more than once? Some examples are the progress bar displayed by `curl google.com > a`, some installation screens and nearly any text editor.
How can certain programs set background and font colors, write characters to the same location on screen (e.g. to the third row, fifth column) more than once?
Some examples are the progress bar displayed by
curl google.com > a
, some installation screens and nearly any text editor.
deprecated
(2871 rep)
Jul 5, 2012, 07:59 AM
• Last activity: Feb 26, 2017, 07:57 PM
0
votes
1
answers
2944
views
ctrl+alt+f7 can't switch
In my debian8 terminal. sudo systemctl set-default multi-user.target Now reboot to text mode,to input **startx** to enter into gui mode. To press ctrl alt f7 ,nothing happen. ctrl alt f1-f6 can switch each other. It seems that ctrl alt f7 baned.
In my debian8 terminal.
sudo systemctl set-default multi-user.target
Now reboot to text mode,to input **startx** to enter into gui mode.
To press ctrlaltf7,nothing happen.
ctrlaltf1-f6 can switch each other.
It seems that ctrlaltf7 baned.
showkey
(499 rep)
Jan 8, 2017, 04:28 PM
• Last activity: Jan 9, 2017, 12:53 AM
2
votes
3
answers
1971
views
dynamic display of a running process?
I am writing a script and according to that when I run it certain info will be displayed on the output screen. for example say the **constant data** displayed is: my name is mukesh. i am 27 years old unix version 7.2.3.0 but along with the above display something else is also need to be displayed(**...
I am writing a script and according to that when I run it certain info will be displayed on the output screen.
for example say the **constant data** displayed is:
my name is mukesh.
i am 27 years old
unix version 7.2.3.0
but along with the above display something else is also need to be displayed(**varying data**) I.e
Process A is starting
Process A is running
Process A is completed.
but I don't want the above display.
I want
Process A is starting
to be cleared from screen
and replaced by Process A is running
and then by Process A is completed.
I am not very keen to use clear
as it will remove the whole screen containing the **constant data** also.
and also because the constant data takes a lot of time to process and to be displayed on the screen.
munish
(8227 rep)
Mar 9, 2012, 07:56 PM
• Last activity: Sep 18, 2016, 01:26 AM
1
votes
1
answers
534
views
How can I find the default (font) resource a VT *instance* is using?
Setting up the virtual terminal appearance on a box with Arch and *urxvt*, I find myself unable to display which X resources are in use in a particular VT *instance*. Take that workflow: 1. Open an urxvt console, load a particular color/font/font-attribute (e.g. by editing `~/.Xresources` then updat...
Setting up the virtual terminal appearance on a box with Arch and *urxvt*, I find myself unable to display which X resources are in use in a particular VT *instance*.
Take that workflow:
1. Open an urxvt console, load a particular color/font/font-attribute (e.g. by editing
As you might see,
~/.Xresources
then update this VT with xrdb merge
)
2. Open another VT, load a different setting, and repeat so to compare between them.
3. Phone rings, time to eat or look upon some kid...
4. Come back to the computer: Oow, what was the X resources settings in VT 1, 2 or N already?
I tried several tools that are able to show up X resources settings for a particular application but:

xrdb
will show X resources loaded by the VT at *a moment*, but not per VT instance. Same for xorg-appres
. Here's a wider screenshot with more instances and different settings loaded
Is there a way to show up X resources loaded in a particular VT *instance* that you know of?
PS: My question slightly differs from the otherwise very informative [How can I find the default (font) resource XTerm is using? ‒ 2013](https://unix.stackexchange.com/questions/96962/how-can-i-find-the-default-font-resource-xterm-is-using)
tuk0z
(569 rep)
Aug 30, 2016, 01:18 PM
• Last activity: Aug 30, 2016, 08:28 PM
1
votes
2
answers
141
views
How is replaceable text shown in a terminal?
For example after doing `apt-get update`, it shows `Reading package lists... 82%` with the percentage changing in the same line. How is that achieved? Is it possible to use it in a bash script?
For example after doing
apt-get update
, it shows
Reading package lists... 82%
with the percentage changing in the same line.
How is that achieved? Is it possible to use it in a bash script?
user80551
(1699 rep)
Oct 13, 2013, 06:45 PM
• Last activity: Oct 13, 2013, 11:47 PM
Showing page 1 of 19 total questions