Questions tagged [terminal]

A terminal or command-line interface is a text-only interface for interacting with an operating system or a piece of software. A user typically types commands into the terminal to perform specific tasks.

terminal
7,910 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
16 votes
3 answers
19k views

Is there a way to restart or reset the python interpreter within a python doctest?

I am writing a short tutorial, and would like to be able to run the examples therein using python's doctest using python -m doctest foo.txt There is a point in the tutorial at which I want to start ...
EHN's user avatar
  • 618
15 votes
0 answers
972 views

Terminal showing “^[OA” when up arrow (↑) is pressed

The up arrow in the terminal should bring up the previous command. My terminal (including iTerm2 and Intellij IDEA terminal) shows ^[OA when I press the up arrow (↑). If I press return, the previous ...
Devs love ZenUML's user avatar
10 votes
1 answer
2k views

Paste into SSH terminal capitalizes last character and doesn't allow me to edit it

I'm running Terminal on my Mac and ssh'ing into a Linux host. I've had 2 issues around copying and pasting text into my Terminal: When I'm just running local Terminal commands on my Mac (not though ...
Dasmowenator's user avatar
  • 5,713
10 votes
1 answer
2k views

Ctrl+C not working with gradle in Git Bash 2.20.1

Back in Windows 7, Ctrl+C worked fine for killing tasks such as gradle. On Windows 10, it does not. I upgraded to Git Bash 2.20.1, where it claims it is fixed (can't find a web link, the release notes ...
Stealth Rabbi's user avatar
9 votes
2 answers
10k views

How to display two different outputs in python console

Is there a way to split the output console? I would like to display one section on top (the main program) and the bottom part will display a progress bar for example. (excuse my horrible design ...
necross's user avatar
  • 147
9 votes
1 answer
875 views

Is it possible to use the terminal malloc_history when debugging on a iPhone device?

I've found malloc_history useful when testing on the iOS simulator, is it possible to configure it for a physical device (iPhone 4). On the console I do get similar messages to this warning: Unable ...
Chris's user avatar
  • 2,488
8 votes
1 answer
1k views

ZSH Autocomplete For Custom Script

I've been searching online for a lot of hours, puling an all nighter because i got so lost down this rabbit hole :D but i'm having trouble finding examples with working code. I have a bash script that ...
MoonMoon's user avatar
8 votes
1 answer
990 views

How can I open a new terminal tab in VSCode's integrated terminal using a shell script?

Question I've seen lots of ways to open a new terminal "tab/pane/view" using an external Terminal app like the macOS Terminal app or iTerm using a shell script or Apple Script but is it ...
Joshua Dyck's user avatar
  • 2,153
8 votes
2 answers
3k views

How to make paths clickable in Visual Studio Code Terminal

I have VSCode vs. 1.3. and I would like to be able to click in any valid path showed inside the integrated Terminal and get the file opened. Do you know how can I achieve it? Thanks!
Nestor Rodriguez's user avatar
8 votes
0 answers
23k views

Windows 7 x64 COM/Serial port Sniffer/Redirect

I need to know what's happening between my computer and a USB Virtual COM port device in order to understand if all of the bytes are being well transmited. I use a Java application to interact with ...
rnunes's user avatar
  • 2,825
8 votes
1 answer
3k views

Break infinite loop in node repl?

Is there a way to break out of an infinite loop in the node.js REPL? For example, running while (true) {} essentially hangs the REPL so intensely that no combination of Ctrl-D or Ctrl-C have any ...
joemaller's user avatar
  • 20k
8 votes
1 answer
4k views

How can I resize pane in byobu in iTerm2 using keyshorts M-S-Up/Down/Left/Right?

I use byobu+tmux in iTerm2, I found that keyshorts for resizing panes is M-S-Up/Down/Left/Right but when I press then I just got character typed like this:
undoZen's user avatar
  • 237
7 votes
1 answer
197 views

Pty doesn't get closed, althoguh close() syscall is called

I'm implementing features of an ssh server, so given a shell request I open a pty-tty pair. A snippet: import ( "github.com/creack/pty" ... ) func attachPty(channel ssh.Channel, ...
Noam Solovechick's user avatar
7 votes
0 answers
430 views

Cocoapods Traceback Could not find 'json' (>= 1.5.1) among 41 total gem(s) (Gem::MissingSpecError)

I've recently installed cocoapods through Homebrew, after install I want to run or install pods, once I execute pod command in terminal it shows this error bellow. Traceback (most recent call last): ...
Mustafa Alkhazraji's user avatar
7 votes
0 answers
305 views

Function keys don't go to integrated terminal

I'm running an application in the integrated terminal that needs inputs of the f1 - f9 keys but some of those get captured by other things like the command-palette (f1). I have been looking around and ...
N.Atema's user avatar
  • 103
7 votes
0 answers
631 views

How to share terminal command output in realtime via a web page?

As programming work often requires us to share our terminal output, I am looking for a persistent way to share the output (stdout and stderr) via a web page. Old school approach was copy/paste to ...
sorin's user avatar
  • 166k
7 votes
1 answer
1k views

A way to open several scripts in separate terminals in VSCODE

I need to run several scripts to start my dev environment. I prefer doing in VSCode. While using concurrently etc. is good, I'd very much like them to run in separate terminal windows to make it ...
Lars Holdaas's user avatar
7 votes
0 answers
716 views

vscode external debug window. Close windows automatically

In vscode with an external debug console (launch.json : "console": "externalTerminal") the independent debug window remains open after the debug session is finished (awaiting a keypress) It's quite ...
tru7's user avatar
  • 6,922
7 votes
1 answer
993 views

How to save shell command for next time use (Terminal of Android Studio)

Suppose I run this command in Android Studio terminal D:\.android\sdk\platform-tools/adb shell input text 'Some Text' How do I save it (as macro) for next time use After closing and opening Android ...
Khalid Almannai's user avatar
7 votes
0 answers
3k views

How to set Python console opening position?

How to set the position of the Python console? For example: os.system('mode con: cols=88 lines=30') However, I want to move the window to another location. For example: os.system('mode move: x=88 y=...
Fahri Güreşçi's user avatar
7 votes
1 answer
348 views

Can terminal close itself after stop debug in VSCode?

I recently use VSCode to debug node.js program on Linux, is it a way to configure the terminal to close itself after I stop debug
teik's user avatar
  • 508
7 votes
1 answer
2k views

Can't open sublime text in tmux after upgrading to Yosemite

On my Mac OS Yosemite, I can open a terminal and run subl and it opens Sublime Text. But, if I start a tmux session and run subl, I get the error: Unable to launch Sublime Text If I try: open -a "...
Emad's user avatar
  • 4,170
7 votes
0 answers
647 views

Vim zenburn doesn't work under screen in mac

I'm trying to use zenburn on OSX under vim. However, whenever I use vim under screen, the background is black instead of grey. Are there color settings I need to set in screen? Here's my screenrc: ...
Jon Chu's user avatar
  • 1,897
6 votes
4 answers
1k views

VS Code integrated terminal is messing up the clipboard python code when pasting

In a clean installation of VS Code (1.59.1) the code pasted in the integrated terminal has a different indentation than the one available in the editor. I tried changing the parameter "editor....
prm's user avatar
  • 120
6 votes
1 answer
2k views

(node:31199) ExperimentalWarning: The fs.promises API is experimental

When I open up terminal, the following message appears (node:31199) ExperimentalWarning: The fs.promises API is experimental How can I fix it so that it disappears? STEPS TAKEN I have looked through ...
helloroos's user avatar
  • 451
6 votes
0 answers
790 views

How to Ctrl+Shift+←/→ to select previous or next word at the VSCode integrated terminal?

How to enable Ctrl+Shift+←/→ to select (highlight) previous or next word at the integrated terminal of VSCode? Ctrl+←/→ in order to move the cursor by one word works perfectly, but Ctrl+Shift+←/→ ...
Thanasis Mattas's user avatar
6 votes
0 answers
2k views

Error Running IRB from Terminal on Mac - Can't find gem

When I type irb into terminal all I get is this: Traceback (most recent call last): 2: from /usr/local/opt/ruby/bin/irb:23:in `<main>' 1: from /usr/local/lib/ruby/site_ruby/2.6.0/...
notyourfavginger's user avatar
6 votes
2 answers
4k views

Multiple terminals, multiple commands, lxterminal

I am working with Python. Writing a script, I am attempting to use os.system() to open a new terminal, create new tabs and run different commands in each respective tab (which appear to run ...
Ian Hill's user avatar
6 votes
0 answers
1k views

GDB: Failed to set controlling terminal

I found some questions about this warning but all related to IDEs. This is for pure terminal GDB interaction. Using GDB tty command, I get the warning and further interaction with program is ...
Ions's user avatar
  • 71
6 votes
3 answers
2k views

How to copy all text from InterlliJ terminal to clipboard

I am using OS X and trying to copy running output from InterlliJ terminal. The most simple way is to select text by drag the mouse but when there are hundreds on lines, this way become very difficult ...
spicydog's user avatar
  • 1,694
6 votes
1 answer
854 views

Run VSCode tasks in a single session

I would like to migrate my local deployment commands to VSCode task. I need to run them as root. When I did those in the terminal, I was asked to provide the password only once. $ sudo echo hello ...
pt12lol's user avatar
  • 2,392
5 votes
0 answers
239 views

Why use Haskeline's outputStrLn vs. conventional putStrLn?

My question: Is there any advantage to using Haskeline's outputStrLn over putStrLn for writing to the screen in a terminal program? Background: I recently introduced Haskeline into my terminal app in ...
the-konapie's user avatar
5 votes
0 answers
2k views

uiautomatorviewer - Please export ANDROID_SWT to point to the folder containing swt.jar for your platform

I am trying to open uiautomationviewer, but whenever I open it gives me this error. I tried to export ANDROID_SWT to this path with this command in the terminal: export ANDROID_SWT=/Users/...
Stefan Josimovski's user avatar
5 votes
1 answer
3k views

VS Code Integrated Terminal Not Displaying Special Characters

My VS Code integrated terminal doesn't recognize the git branch symbols, or the forward arrow character, shown in the first screenshot, which displays correctly in iTerm windows and IntelliJ's ...
Andrew Smith's user avatar
5 votes
0 answers
965 views

Flutter : Failed to get binder for service "vendor.vpsservice"

Flutter dummy app creates an issue. I created a new app and run it on an android real device. It's show me an issue continuously on terminal like Performing hot restart... ...
Abir Ahsan's user avatar
  • 2,889
5 votes
0 answers
3k views

VS Code terminal not working anymore (WSL)

i've been using vscode terminal for a while and the terminal suddenly stopped working. Nothing appears on it. If i close it and try to open a new terminal nothing happens. Also when i run the cmd and ...
Scotty's user avatar
  • 51
5 votes
0 answers
1k views

How can I expand a .xip file on my USB into my internal hard drive?

I have saved the Xcode_12.2.xip file onto and external USB drive. How can I expand the file with the destination as my computer, say in downloads? If this doesn't make sense I can provide more ...
Monstr's user avatar
  • 53
5 votes
0 answers
4k views

How to permanently fix "don't have write permissions for the /usr/bin directory"

This all started by attempting to install cocoapodsthrough the terminal. Long story short, I kept getting an error that my rubygems version was not acceptable. I then attempted to update that version ...
Lux's user avatar
  • 76
5 votes
0 answers
5k views

Color highlighting in VS Code integrated terminal?

When I run commands in Git Bash I get color coded output: But when I use the integrated terminal in VS Code the output is plain white text. How can I get the same coloring? This isn't specific to ...
pyjamas's user avatar
  • 4,920
5 votes
0 answers
830 views

Check if terminal supports unicode in rust

I would like some way of doing essentially the following: if supports_unicode { print!("some unicode"); } else { print!("ascii"); } Is there any way in rust to check if ...
Liam Bloom's user avatar
5 votes
0 answers
7k views

Is there a command in macOS terminal that can recursively search a string in all files under current directory (including sub-directory)?

I want to know if there is a command in macOS, similar to the grep -r <target-string> in Linux, that can list all lines containing <target-string> in files under current directory (...
ysong4's user avatar
  • 171
5 votes
2 answers
6k views

Installing MuJoCo

I am trying to Install MuJoCo but I cannot create the required directory ~/.mujoco. I obtain the following error: You appear to be missing MuJoCo. We expected to find the file here: /Users/NAME/....
john melon's user avatar
5 votes
0 answers
324 views

What is preventing eslint from installing based on my error code?

I am following a Udemy course and the first app we are building through Atom is called albums. I have installed linter and linter-eslint in Atom, but running this code: npm install --save-dev eslint-...
corky romano's user avatar
5 votes
0 answers
2k views

How to correctly link patched GNU readline library to all existing programs?

My original issue was that I wanted a way to distinguish between whether I am in vi-command mode or vi-insert mode while using bash in vi-mode. I understand that as of GNU readline 7.0 there is a way ...
jinscoe123's user avatar
  • 1,659
5 votes
1 answer
2k views

Unable to execute jshell from Mac Terminal

I am currently using java 1.8 on my Mac Sierra. java -version java version "1.8.0_51" Java(TM) SE Runtime Environment (build 1.8.0_51-b16) Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed ...
Panchu's user avatar
  • 1,249
5 votes
0 answers
5k views

How to print emoji style flag in terminal/shell on OSX with python?

With python I can use print u"\U0001F602" to print the emoji but I can't print the flag emoji with print u"\U0001F1F2\U0001F1FE" because the flag is default by text style in terminal, how to ...
Gohan's user avatar
  • 2,450
5 votes
0 answers
880 views

Emacs Orgmode + Terminal = Tab not working

I'm new to emacs + orgmode and I was trying to use it on Mac's terminal. However, when I open an orgmode file on terminal I can't use the tab key to hide/unhide the texts under *,**,***,.... Question:...
Guilherme Salomé's user avatar
5 votes
0 answers
634 views

Python - Add hook/callback for when cursor moves when entering raw_input?

I am trying to write a version of the interactive interpreter which has syntax highlighting. Here's what I have so far which works reasonably well (uses blessings and pygments modules)... import ...
Leo Parmeson's user avatar
5 votes
0 answers
1k views

Capture screenshot of all open tabs

Since Firefox 18 a user can take a screenshot of an open tab by pressing shift+f2 and running screenshot --fullpage. Can the Firefox terminal be used to take a screenshot of all currently open tabs?
hellocatfood's user avatar
5 votes
1 answer
2k views

Bash trap unset from function

Namely, http://fvue.nl/wiki/Bash:_Error_handling#Set_ERR_trap_to_exit Why is it necessary to set -o errtrace to make trap set/unset from a function call work? #!/usr/bin/env bash function trapit { ...
Marc Trudel's user avatar
  • 1,254

1
2 3 4 5
159