Is there a way in python to programmatically determine the width of the console? I mean the number of characters that fits in one line without wrapping, not the...
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question...
Is there a Linux command that will list all available commands and aliases for this terminal session? As if you typed ‘a’ and pressed tab, but for every letter...
couldn’t find this on SO. I ran the following command in the terminal: >> grep -Rl "curl" ./ and this displays the list of files where the keyword curl...
I have been a long time user of the standard Mac Terminal. Decided to experiment with iTerm2 after hearing good things about it from my colleagues. One of the...
How do I print coloured characters to a Linux terminal that supports it? How do I tell whether the terminal supports colour codes? 16 Answers 16
As a simple example, I want to write a CLI script which can print = across the entire width of the terminal window. #!/usr/bin/env php <?php echo str_repeat('=', ???);...
When piping the output of a Python program, the Python interpreter gets confused about encoding and sets it to None. This means a program like this: # -*- coding:...
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow....
On most terminals it is possible to colorize output using the \033 ANSI escape sequence. I’m looking for a list of all supported colors and options (like bright and...