For questions related to using the Terminal App in OSX.
Questions tagged [terminal.app]
19 questions
19
votes
3 answers
Is there a way to change macOS Terminal's theme/profile based on the system dark/light mode?
In macOS's Terminal app, the default theme (Basic) adapts dynamically to system settings, but as soon as I customize the Basic theme from the preferences menu, it stops adapting. Is there a way to manually configure Terminal to look at the system…

Parth Shimpi
- 193
- 1
- 1
- 5
12
votes
3 answers
Direnv not loading environment when shell starts in a directory with .envrc
Imagine I am in a shell with the working directory set to a directory that contains an .envrc file. When I now open up a new tab in my terminal emulator, a new shell is launched into the same working directory as the original shell.
For some reason,…

aef
- 4,498
- 7
- 26
- 44
7
votes
0 answers
Curses - endwin is resetting to original terminal size after the terminal has been resized
I have a Curses application that is running ok. It handles resizing the term well and everything draws ok. The only problem is that when endwin() is called it resets the terminal to the original size. IE, I'm using the application, I resize my term,…

Brayton
- 71
- 1
4
votes
0 answers
remap `fn` key in MacOS Terminal.app for `tmux`
I use macOS Sierra Terminal.app with tmux. When I want to disable Allow mouse reporting temporarily to copy/paste and clicking I need to press the fn key which is far away in my long apple keyboard. Is there a way to change this fn key to a closer…

qkhhly
- 1,150
- 3
- 12
- 27
4
votes
1 answer
How to insert a checkmark in emacs -nw/gui-less mode
I want to insert a tick mark, maybe this: ✔
Can I do it with C-x 8 or some other way?
My environment:
Latest MacOS, inside Terminal.app
I start with emacsclient -nw (No gui)

american-ninja-warrior
- 7,397
- 11
- 46
- 80
3
votes
1 answer
Alternative/Remap `fn` key in OSX Terminal.app for `tmux`
I use tmux within macOS Sierra Terminal.app. When I want to disable Allow mouse reporting temporarily to copy/paste and clicking I need to press the fn key which is far away in my long apple keyboard. Is there a way to change this fn key to a closer…

Gabriel Borges Oliveira
- 543
- 5
- 14
2
votes
1 answer
X11 (xquartz) window stacking
First, I'm fairly new to how programs interact with X11 window managers. I frequently use ngspice for circuit level simulations and one of the most commonly used tasks is to plot waveform using Nutmeg post processor. Whenever multiple X11 windows…

user69055
- 21
- 1
2
votes
1 answer
Turn off line wrapping when running git grep
Sometimes I do a git grep, and there's that one line which is so long it takes up half a page or more because of line wrapping. How can I tell git grep to turn of line wrapping, instead requiring me to scroll to the right if I want to see the rest…

Andrew Grimm
- 78,473
- 57
- 200
- 338
1
vote
1 answer
Foreground and background color rendered differently in macOS Terminal.app
I tried to build some simple custom prompt for zsh inspired by the 'powerline look'. My .zshrc currently looks like:
CLICOLOR=1
PROMPT=$'%K{236}%F{246}%n%f@%B%m%b %k%K{045}%F{236}\Ue0b0%f %F{000}%2~%f %k%F{045}\Ue0b0%f %# '
However, I noticed color…

Phil Ks
- 61
- 6
1
vote
1 answer
Making terminal settings permanent even after restart
I am trying to lock the view settings on terminal. Everytime I restart Mac or close all the terminal windows; upon re-opening the windows default to the initial configuration, as though the settings have not been saved.
Is there a way to make the…

John Tan
- 1,331
- 1
- 19
- 35
1
vote
2 answers
Launch Python script in new terminal
I want to launch a python script in a new macOS terminal window from another script. I'm currently using this code:
subprocess.call(['open', '-a', 'Terminal.app', '/usr/bin/python'])
which launches a python prompt in a new terminal window.
But when…

ejj28
- 88
- 2
- 12
1
vote
1 answer
warnings and errors when starting emacs
I have a few annoying warnings that appear when I start emacs:
$ /Applications/Emacs.app/Contents/MacOS/Emacs-x86_64-10_9 --
daemon=/tmp/green
Warning: arch-dependent data dir…

american-ninja-warrior
- 7,397
- 11
- 46
- 80
1
vote
1 answer
Discovering remote Terminal for Terminal Escape Codes? (DECDHL in this case)
I am trying to determine WHAT console I am running in. (Exceptionally hard based on the research I have done so far.) The latest feature that I discovered that would be useful is Double High, Double Wide for a couple of scenarios.
The setup is a…

ErnieE
- 143
- 1
- 6
1
vote
1 answer
OSX: How can an application running in Terminal.app change the font size of its window?
How can an application running in a Terminal.app window change its window's font size? No solution (such as a system call to applescript, etc) too odd!

Mark Harrison
- 297,451
- 125
- 333
- 465
0
votes
0 answers
Exception: Gradle task assembleDebug failed with exit code 1 in Flutter
I am running Flutter 2.2.2 in Terminal.app on macOS Big Sur. I have an Android phone, a Moto G5 Plus running Android 8.1.0. Developer options are on as is USB debugging, and I've connected the phone to my computer with a USB data cable. The device…

Peter Nielsen
- 251
- 4
- 17