Using Git Bash or MinGW Shell, if I put in a command with much output,
for example env, I cannot mouse scroll. A regular old Command Prompt (cmd.exe) window will do this however.
Enable Quick Edit mode
Open Properties: AltSpace, then P (for properties)
Under Options tab > Edit Options > Check Quick Edit > Hit OK
Now you will be able to scroll with mouse.
In the latest version of the git bash you don't have any property such as Quick Edit but then too your scroll might not work as it was my case..
press alt + space then click options and go to window then
Simply change your scrollbar location from right to left or vice versa then it will work, at least worked for me.
Related
While using gdb in 'layout src' window mode (command at the bottom and source at the top), often I want to go back some characters to modify the current command I'm editing in the gdb command window. But pressing left or right key just moves the source window. How can do it?
You need to change the input focus, see here for details:
https://sourceware.org/gdb/current/onlinedocs/gdb/TUI-Commands.html#index-focus
Specifically, you want focus cmd. After this you should be able to use the arrow keys to scroll through the GDB history.
I am new to the MacOS, and I have started using iTerm, and I want to make the changes to my UI permanent, but I am unable to do so.
When I "right-click" in the iTerm window and go to Edit Session... > Preferences>Text>Cursor>Vertical Bar, my current instance of iTerm does what I want it to.
However, when I shut it down and start another window some time later, it reverts back to its old settings. How do I make these settings permanent so I don't have to keep repeating the above process?
Also, I have switched from using zsh to using bash, however, I still see this when I open an instance of terminal:
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Isn't my default terminal now bash, not zsh?
Instead of right-clicking and entering "Edit Session...", you can make permanent changes from the navigation bar on the top of your screen once you open the iTerm.
iTerm2 > Preferences > Profiles > Text > Cursor > Vertical Bar.
When the above didn't work for me, I found (from iTerm2 menu bar):
Preferences > General > Preferences
Where I had set Save Changes to Manually. Right next to that setting is the Save Now button.
In Terminal, I can simply to cmd+up arrow. How can I do this in iTerm2? I've tried the cmd+shift+up arrow option, but it doesn't work reliably, especially when there is a currently running process.
You can do this with Shell Integration! By default, iTerm2 is not fully integrated with the shell (e.g. Bash) itself. It doesn't really know which lines are prompt and which are output, so it wouldn't know what line to jump you back to as the previous prompt. If you install shell integration, it'll automatically add a mark at each prompt line and you'll be able to cycle up and down with Command-Shift-Up Arrow and Command-Shift-Down Arrow respectively. On my machine this worked even while a process was running.
In Preferences > Keys you can change the default keybindings back to what you're used to. Double click on Command-Up Arrow, change the Action to Select Menu Item..., and set the menu item to Edit > Marks and Annotations > Previous Mark/Annotation. Repeat with Next Mark/Annotation for Command-Down Arrow.
EDITED 2020-03-30: It appears Mark and Annotation were separated into different menu items in a recent update. You should now use Next Mark instead.
I need to Reset my MobaXterm screen after some time working, however 'clear' and 'reset' commands wont work as if I was on a linux server.
Anyone have some tip?
Right click MobaXterm screen > Click Clear Scrollback
Note: Your MobaXterm may be set to paste on Right-Click; in this case use Ctrl+Right-Click.
When 'Paste using right-click' is checked, you still can use Ctrl/Shift + Right Click to pop up the contextual menu.
To reset your MobaXterm screen, use:
Right click on selected MobaXterm screen > Clear Scrollback (as describe above)
Or, if the prompt is available, launch the command 'cls'
Or, in all cases (prompt available or not), press CTRL+L keyboard keys
Mobaterm seems to like playing around with the putty configuration - so I found that right clicking on the window -> change terminal settings
-> features -> enable everything.
-> window -> disable push erased text into scrollback
the usual clear control commands
function clear() {
printf '\033[2J' # clear
printf '\033[H' # home
}
will now clear the screen and clear the scrollback
Right click on the terminal window in MobaXterm.
In the popup menu, click Change terminal settings...
In the tree, click Terminal > Features
Uncheck Disable remote-controlled clearing of scrollback
In the tree, click Window
Uncheck Reset scrollback on display activity
Click the Apply button
You can now type clear and have the window clear and remove the scrollback.
In Eclipse, I am able to do Ctrl+M while I am typing in the editor to full-screen the editor and temporarily hide all the side-windows. Is there a way to achieve this in RStudio? The code editor portion of the window is very small and yet I don't feel like manually fiddling with the mouse to resize my console/plots/workspace windows.
The view menu doesn't offer much else than zooming in/out.
All shortcuts Alt+Shift+K
You can make the editor fill up the entire rstudio window with Ctrl+Shift+1. Also to restore.
To move between the panes, the shortcut is CTRL + number.
1 - source
2 - console
Adding shift to the shortcut makes that pane fill up the spaces.
The best solution I've found is to use a "source window", i.e. pop out the editor into a separate window temporarily:
This window can then be expanded to fill the whole screen:
Only way I know how is to click on the right hand side of the title bar of the source code section where it has 2 windows symbols. The right-most one expands the code window to the entire left hand side.
Instructions and documentation below from the R studio manual:
http://www.rstudio.com/ide/docs/using/console
If you're running on Linux, you can install RStudio Server, just for use on the same computer. It's almost exactly like the regular RStudio, but inside a browser. I prefer it because I can full screen, and can use the browser's Find in the console.