konsole

opening more than one file split vertically through emacs -nw

做~自己de王妃 提交于 2019-12-04 11:32:48
问题 Using emacs -nw file1 file2 I can open multiple files at once. However, emacs will open them in horizontal splits. Is there a way to set default split behavior to vertical? I have looked at: ToggleWindowSplit If I could have emacs call that automatically every time I open multiple files that would do what I am looking for. I also looked at this SO post. Their suggestion of adding (setq split-height-threshold nil) and (setq split-width-threshold 0) in ~/.emacs did not work for me. I have tried

Change konsole tab title from command line and make it persistent?

江枫思渺然 提交于 2019-12-03 12:17:55
How can I change the konsole tab title? By default, it's set to %u : %n , so it always changes automatically. I can set it with: qdbus org.kde.konsole $KONSOLE_DBUS_SESSION setTitle 1 "My Title" But as soon as you run something in the console, it changes back to %u : %n . Of course. I can set it to %w to tell it to set the title to "Window Title set by shell", but later (if I don't explicitly set it), it will be empty. (Every new tab will be empty, unless I set it.) The question is how to make it persistent (or how to switch profile via command line)? I can make another profile in which the

opening more than one file split vertically through emacs -nw

China☆狼群 提交于 2019-12-03 07:24:35
Using emacs -nw file1 file2 I can open multiple files at once. However, emacs will open them in horizontal splits. Is there a way to set default split behavior to vertical? I have looked at: ToggleWindowSplit If I could have emacs call that automatically every time I open multiple files that would do what I am looking for. I also looked at this SO post. Their suggestion of adding (setq split-height-threshold nil) and (setq split-width-threshold 0) in ~/.emacs did not work for me. I have tried them separately and together. In your init file, add the toggle-window-split function code. Then, add

In linux, how can I test whether the output of a program is going to a live terminal or to a file?

陌路散爱 提交于 2019-11-28 03:26:53
问题 When you use git it seems to magically know whether standard out is going through a pipe or into a file vs when it is being displayed to the console. For example, if you have colors enabled and you do git status it will colorize the output for different categories of files being listed. However, if you do git status | less or git status > status.txt it removes the linux color formatting and you only see plain, uncolored text. How does git detect whether the output of its commands are going to

Clear a terminal screen for real

[亡魂溺海] 提交于 2019-11-27 02:28:45
Using the clear command on the terminal only fools the user into thinking the screen has been cleared...you can still see output from the previous commands when you scroll using the mouse. This makes life difficult when you are drowning in a tsunami of text. Various solutions (escape code etc.) which can be found on the Internet are only variations of what the clear command already does. So how do you clear the contents of a terminal in Linux for real? Autodidact Use the following command to do a clear screen instead of merely adding new lines ... printf "\033c" yes that's a 'printf' on the

Clear a terminal screen for real

独自空忆成欢 提交于 2019-11-26 10:04:43
问题 Using the clear command on the terminal only fools the user into thinking the screen has been cleared...you can still see output from the previous commands when you scroll using the mouse. This makes life difficult when you are drowning in a tsunami of text. Various solutions (escape code etc.) which can be found on the Internet are only variations of what the clear command already does. So how do you clear the contents of a terminal in Linux for real? 回答1: Use the following command to do a