Tag Info

New answers tagged

3

Bash needs to put the terminal into character-at-a-time mode while it's waiting for you to type in a command line, so that you can edit the command line using emacs or vi-like editing characters. That's the mode you saw when you looked at the terminal's attributes from another terminal in your example. Just before it runs a program (in your example, stty), ...


1

As mentioned before you can try picocom. The latest release (2.0) can also be used (safely) to set-up a "terminal server" since it does no longer permit shell commands injection. See: https://github.com/npat-efault/picocom/releases


4

If less is set as a viewer for man pages then you have opportunity to overwrite standard colors, with less special variables. Example from my settings: export LESS_TERMCAP_mb=$'\e[6m' # begin blinking export LESS_TERMCAP_md=$'\e[34m' # begin bold export LESS_TERMCAP_us=$'\e[4;32m' # begin underline export ...


0

Along the tmux and screen worth to mention byobu as well. http://byobu.co/ https://help.ubuntu.com/community/Byobu


2

This question provides several ways to dump man page. They also discuss that man pages follow special formatting - the one that can be interpreted by terminal emulator. Basically man page is a groff document, so it contains funny characters that man interprets as formatting. Using man on two different terminal emulators might yield different results - ...


1

If the key does not contain any newlines, you could simply pipe it in. # cryptsetup luksFormat foobar.img originalkey WARNING! ======== This will overwrite data on foobar.img irrevocably. Are you sure? (Type uppercase yes): YES # cryptsetup luksAddKey foobar.img newkey < originalkey Unfortunately cryptsetup has several modes of handling keyfiles, ...


1

I'v found a solution. It appears that ttygif allows You to use a starting command with flag -e So it's enough to do ttyrec file_name -e "tmux a" Or in my case record-session -e "tmux a -t my_session"


1

There are more than one solutions here: Use tmux-logging plugin. Use a .bash_profile to log the output to a script. If you want to use record-session you can always use tmuxinator to setup the ENV and run the commands. There are probably more ways to do it, but best way IMHO would be to use the plugin.


1

Apparently one has to press Ctrl+Alt+Fn+F[N]


1

I was able to configure the serial port so echo behaved like screen. Here are my settings: stty -F /dev/ttyUSB0 115200 raw -echo -echoe -echok -echoctl -echoke And to echo: echo -e -n 'command_here\r' > /dev/ttyUSB0


0

The solution evolved into http://www.gnu.org/software/parallel/parallel_design.html#Remote-Ctrl-C-and-standard-error-stderr $SIG{CHLD} = sub { $done = 1; }; $pid = fork; unless($pid) { # Make own process group to be able to kill HUP it later setpgrp; exec $ENV{SHELL}, "-c", ($bashfunc."@ARGV"); die "exec: $!\n"; } do { # Parent is not ...



Top 50 recent answers are included