I tend to have a low attention span, so when I get a proof-of-concept like this up and running (and prove it works), even if the final results are not "polished", I then want to "call it good enough" and quickly move on to the next project.
This is me too except for the attention span. As soon as I find a solution to something I let others better it.
And as for doing something different I have done some bizarre stuff on here... <wink> /Me awaits the mickey take... ;oD
OT: Here is a small snippet for a terminal window you might like under OSX 10.14.6 on this MBP, solved and going into the Campimeter code.
Enjoy...
Last edited by wisecracker; 01-30-2020 at 03:29 AM..
Reason: Corrected the "shebang", 30-01-2020. Thanks Ravinder...
These 2 Users Gave Thanks to wisecracker For This Post:
I am interested in knowing if anyone out there has been using the BSD UNIX that underlies
MacOS X. Is this an "industrial strength" version of UNIX? Can I run X-Windows on such
a machine? How about TeXing, pythoning, PERLing or using other useful UNIX goodies
near and dear to my shrunken... (1 Reply)
1) How can I stop Vuze from reporting the following error: "Too many open files" ?
2) What directory do I need to be in to effectively utilize this command:
sudo bash -c 'ulimit -n 8192; sudo -u username ./azureus' ?
3) Is this the maximum number of files that I can allot to Vuze on OS X... (1 Reply)
Dear all,
I use awk quite a bit for data wrangling ... today I find weird behavior that I cannot wrap my head around.
if I execute the following command (simplified to illustrate the behavior ... nothing to do with the real command)
bash-3.2$ awk... (3 Replies)
why,just beacuse that its the bottom layer uses a small amount of bsd code? In my opinion, macos and Unix are completely different. The directories are long directory structures. For example, /application, /system, /user, /volumes, etc. are completely different from the traditional /bin/ /sbin... (5 Replies)
Interestingly Apple has decided to switch the default shell for new users from bash to zsh in MacOS Catalina (10.15)
Use zsh as the default shell on your Mac - Apple Support
Another interesting fact is that Catalina also comes with /bin/dash (5 Replies)
Hi all...
This was the original code I created to expand a terminal on the fly using Python 2.6.x to the now 3.8.0 without modification under OSX 10.7.5.
I had no idea at the time that the MBP terminal could be full screen until here:... (0 Replies)
Discussion started by: wisecracker
0 Replies
LEARN ABOUT HPUX
tput
tput(1) General Commands Manual tput(1)NAME
tput - query terminfo database
SYNOPSIS
type] capname...
type] capname [parms...]
DESCRIPTION
The command uses the database to make terminal-dependent capabilities and information available to the shell (see terminfo(4)). The com-
mand outputs a string if the attribute (capname) is of type string, or an integer if the attribute is of type integer. If the attribute is
of type boolean, simply sets the exit code for TRUE, for FALSE), and produces no output.
Command-line Arguments
The command recognizes the following command-line arguments:
Indicates the type of terminal.
Normally this flag is unnecessary because the default is taken from the environment variable
capname Indicates the attribute from the database. See terminfo(4). In addition, the following capnames are supported:
Echo the clear-screen sequence for the current terminal.
Echo the initialize sequence for the current terminal.
Echo the sequence that will reset the current terminal.
parms If the capname takes optional numeric parameters, the parms will be placed in the string output by
The capnames are read from stdin and multiple capnames are allowed. Only one capname is allowed per line when reading
from stdin.
EXTERNAL INFLUENCES
Environment Variables
determines the locale to use. This overrides settings of other environment variables.
determines the language to use for messages.
determines the terminal type if the option is not specified.
EXAMPLES
Echo clear-screen sequence for the current terminal.
Print the number of columns for the current terminal.
Print the number of columns for the 70092 terminal.
Set shell variable to stand-out-mode sequence for current terminal.
This might be followed by a prompt:
Set exit code to indicate if current terminal is a hard copy terminal.
Clear the screen, move the cursor to line 10, column 20 and turn on bold.
RETURN VALUE
If capname is of type boolean, then the exit code is set to for true and for false.
If capname is not of type boolean and fails, an error message is printed, and exit code is set to one of the following depending on the
failure:
The capability name is of type integer and does not exist.
Usage error.
Unknown terminal type.
Unknown capability name.
An error occurred.
If the exit code is a is printed if a capability name of type integer is requested for a terminal that has no entry for that capability
name in the database (such as
FILES
Terminfo data base
Definition files
SEE ALSO
stty(1), untic(1M), terminfo(4).
STANDARDS CONFORMANCE tput(1)