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.
Related
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 macOS vscode, when I close a file that has some changes made to it, I get a dialog on top. How do i navigate the buttons here with just my keyboard?
The screenshot doesn't show it but it defaults to the Save button.
I don't know if VS Code follows normal Mac conventions but, if it does, Return should select the default button (Save, presumably); Escape should cancel; and Command-D or possibly Command-Delete should select Don't Save.
Also, if you have System Preferences > Keyboard > Shortcuts > Full Keyboard Access set to "All controls", the Tab key should move focus among the buttons and Space will press the one with focus. If you don't normally have that set that way, Control-F7 will toggle it on.
On opening PhpStorm's Terminal Tool Window, I would expect to be able to run commands like Ctrl + Tab to switch terminal tabs, or Cmd + 1 to open the Project Tool Window, but my keyboard is stuck inside the Terminal.
Is there a way to release the keyboard from the Terminal so that I can return to regular commands? (Without using Option + F12 to hide the Terminal Tool Window.)
Switching between Terminal tabs can be done using the same shortcut as Editor tabs: Alt+Left/Right on Windows using Default keymap (on Mac it would be Cmd + Shift + [ and Cmd + Shift + ] (or whatever you have got there for Main Menu | Window | Editor Tabs | Select Next/Previous Tab -- you can verify/change it in your Preferences | Keymap)).
Project View tool window shortcut (Alt+1 on Windows or Cmd+1 on Mac) does not work indeed if used in Terminal.. but shortcuts for Favorites or Structure tool windows still work just fine.
Therefore I may suggest to jump to Structure via Alt+7 (Cmd+7 on Mac) first and then just use Esc to get into Editor). P.S. See if recording macro with such sequence will work for you (you can assign custom shortcut to it).
I'd suggest simply adding another keyboard shortcut for accessing the terminal. E.g. ⌘0
F12 is the default shortcut for Mac and Linux OS.
This shortcut will toggle terminal focus. The default F12 shortcut for Mac (dunno about Windows) will not.
You may need to restart PhpStorm to hijack ⌘0 or whatever you choose.
You can access terminal by Alt + F12 on Windows
PHPStorm and other products of Jet-brains are configurable to your liking. you don't need to learn new keyboard shortcut jus configure the as you prefer.
For example for me i use PHPStorm VS code and Sublime text editor for my coding daily.
So it is good to have same key-map on all of your IDES/Text editors
i am on mac and i use these key-map for all of the mentioned above
Command + ! => toggle Explore tab
Command + ~. => toggle Termina tab
Command + 2. => toggle console tab
So to configure any keyboard of your choice this on PHPStorm (macOs)
Hit Command + , and you will be on PHPStorm Preferences
Go to Key-map if you happen to know the current working shortcut on your PHPStorm
then on you right side after the search box there is a keyboard hit it and press the current working key let say by default toggling terminal is option + F12 (please note for some keyboard you need to add function key(fn) that will make it be option/alt + fn + F12)
Hope you will see terminal with keyboard shortcut at the right side, then two finger click/ right click hope you will have a popup menu to add new keyboard shortcut or remove the existing one.
Add your preferred keyboard shortcut first before removing the existing on (why ? since as soon as you remove the keyboard and you firstly got there via that keyboard shortcut the result will refresh and the thing will disappear from the view)
Note some of the new shortcut you prefer will be already in use that should not scare you away. just remove that and remap with a new binding later which you find useful for you.
Apply and ok then you are good to go !
I am very new to this, and my c9 terminal seems to be frozen. The cursor is blinking, but when I try to enter text, nothing shows up. I have tried exiting my workspace and reloading and it still will not work.
Opening a new terminal tab with the View menu or pressing ALT-T is the best bet to get a working terminal back (as mentioned in the comment above)... you may also find that having selected the broken terminal though, you can't click things in your menus anymore. I've found that pressing the Preview button and then closing it, seems to get the UI to be responsive again.
Supports official response is that you should perform workspace reset using ?reset=1 after your workspace url (which doesn't last or work very well in my experience).
This can happen after pressing ctrl-s, pressing ctrl-q should restore it. See https://unix.stackexchange.com/a/12108/41174 for explanation.
I tried ALT-T and ?reset=1. Nothing helped in my case.
I managed to bring my frozen terminal back to life by closing its tab. I ignored the warning that all processes would stop. Then I clicked on the rightmost tab with a plus sign. In the menu I selected "New Terminal".
You can click at the top right where CPU usage is shown. Then click on "Restart" when the menu appears.
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.