New answers tagged terminal
Score of 3
3
votes
Accepted
In Python under Unix, ask for interactive terminal input but avoid stdout
In Python (Linux version) you can open tty like so:
tty = open("/dev/tty", "r")
# do something ...
tty.close()
The Pythonic way would be:
with open("/dev/tty", "r&...
Score of -1
-1
votes
How do I include --no-pager in a Git alias?
The problem is where --no-pager has to go. It's a global Git option, not a log option — it only works if it appears before the subcommand, like:
git --no-pager log ...
But a normal Git alias (hist = ...
Score of 0
0
votes
Why do I have to keep using `source ~/.profile` to get settings in place?
The main problem, as I understand it: "don't have to call $ source ~/.profile every time".
The simplest way just set an option in terminal program to force Bash to be an "interactive ...
Score of 0
0
votes
(python 3) Auto-Conversion from .h264 to .mp4
This Python code convert .h264 video and .mp4a audio to mp4 file without MP4Box nor FFMPEG.
import struct
import sys
from typing import Dict, List, Optional, Tuple
class TrackParser:
def __init__(...
Score of 0
0
votes
How to setup Windows Subsystem Linux (WSL 2) with VSCodium on Windows 10
I was able to fix this by editing 'c:/users/{name}/appdata/local/programs/vscodium insiders/bin/codium-insiders'
change lines 50-55 from this:
if [ -n "$WSL_EXT_WLOC" ]; then
# ...
Score of 0
0
votes
Interrupt command (ctrl+C) no longer working in VS Code 1.78 terminal on macOS
It now alllows you to copy using Ctrl + C they moved the termination to Ctrl + W
Top 50 recent answers are included
Related Tags
terminal × 24382macos × 5160
bash × 3782
linux × 3636
python × 3165
shell × 2249
java × 1144
visual-studio-code × 1073
unix × 1054
ubuntu × 1023
c × 998
command-line × 936
git × 802
node.js × 787
zsh × 700
c++ × 679
php × 542
ruby × 532
windows × 513
command × 507
python-3.x × 472
ssh × 468
console × 436
javascript × 425
vim × 425