Sponsored Content
Operating Systems OS X (Apple) A new OSX 10.12.x terminal from the command line. Post 302997705 by wisecracker on Thursday 18th of May 2017 10:10:11 AM
Old 05-18-2017
A new OSX 10.12.x terminal from the command line.

Hi guys and gals...

After much searching on the good ol' internet I could find nothing, so this is the result.
ALthough many people seem to have asked this question no-one seems to have a solution so here we go.

I need for AudioScope.sh, 'xterm' to run a second program for some of its calibration using the same machine.
'xterm' no longer exists on OSX 10.12.x Sierra, it can be installed but it is unavailable on a virgin OSX Sierra install.

Hence the code below.

Place it into your '$HOME' drawer and call as per the code comments.
Remember to change the access rights before you go.

This incarnation is called 'NewCLI', anyone remember that? ;oD
But you could just as easily name it 'xterm' if you wish. I have both in my '$HOME' drawer.

Enjoy...
Code:
#!/bin/bash
# Usage: ./NewCLI ["/full/path/to/program"]
#
# A little bit of the ancient AMIGA in here... ;o)
#
# Save this script into your "$HOME" drawer.
#
# As 'xterm' is no longer available with a default OSX 10.12.x Sierra
# install then this is a workaround to have more than one terminal called
# purely from the command line.
#
# The new terminal will be directly underneath the current terminal.
# Just move the current terminal out of the way and, voila, a second
# terminal with its own environment variables will show.
# '$1' is an optional "/full/path/to/program" argument to be run inside
# double quotation marks as shown.

/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal "$1" &


Last edited by wisecracker; 05-18-2017 at 11:15 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

#!/bin/bash and #1bin/sh command not found error on mac osx terminal/shell script

i am having a weird error on mac os x running some shell scripts. i am a complete newbie at this and this question concerns 2 scripts. one of which a friend of mine wrote (videochecker.sh) a couple weeks ago and it's been running fine on another machine. then last week i wrote capture.sh and it... (2 Replies)
Discussion started by: danpaluska
2 Replies

2. OS X (Apple)

Changing OSX Terminal Man Page Colors

For a long time, when I type man anything on my Mac, both the manpage header fonts and the background was black, so I had to use my mouse to highlight the manpage output to read it. It was really annoying. The problem was the same both locally or using the terminal and going ssh somewhere. ... (1 Reply)
Discussion started by: Neo
1 Replies

3. Shell Programming and Scripting

Is command line invocation of gnome-terminal to run more than one command possible?

Hello, I am trying to learn how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here: #! /bin/bash # #TODO write this for gnome and xterm USAGE=" ______________________________________________ ${0##*/} run... (0 Replies)
Discussion started by: Narnie
0 Replies

4. UNIX for Dummies Questions & Answers

Help: Add email users in OSX terminal

Please forgive me if this is the wrong place to post. I am a VERY basic user here and have been tasked with adding a user to our email system -- we use a squirrelmail interface and I have root passwords etc. I tried logging in through a browser but get this error: ERROR: Connection dropped... (1 Reply)
Discussion started by: dperro01
1 Replies

5. OS X (Apple)

Help: Add email users in OSX terminal

Please forgive me if this is the wrong place to post. I am a VERY basic user here and have been tasked with adding a user to our email system -- we use a squirrelmail interface and I have root passwords etc. I tried logging in through a browser but get this error: ERROR: Connection... (1 Reply)
Discussion started by: dperro01
1 Replies

6. OS X (Apple)

How to prompt for login on OSX when starting Terminal

I was wondering if anyone can tell me how to log back in to unix after logging out. I have a MBPro. If I don't have the window close after exiting, then there is the phrase 'process completed' in brackets with a blinking cursor, but I can't type anything in. Is it also possible to start the... (4 Replies)
Discussion started by: Straitsfan
4 Replies

7. UNIX for Dummies Questions & Answers

Terminal emulation OSX Vs. Solaris 11

I am using Terminal on an OSX system to access and edit crontab files on a 'headless' Solaris 11 server. Crontab -e on OSX invokes vi as the editor, which is fine, but I am getting unexpected characters on keystrokes and have to abort the edit. If this is an emulation issue, would someone please... (1 Reply)
Discussion started by: SmokeyJoe
1 Replies

8. OS X (Apple)

Osx terminal

hi all, first off thesis my first post so if i am not in the right forum, i apologize. i'm an absolute newbie to unix. i've been reading my books and studying my crib sheets etc. but... :/ i want to accomplish two things. 1. search and remove duplicate files i.e.. audio, doc alias etc.... (1 Reply)
Discussion started by: monkeyhateclean
1 Replies

9. OS X (Apple)

OSX afplay command line audio player _manual_.

Hi everyone... I don't know if this is the correct forum but it is Apple OSX specific. It is a proper pseudo-man page for the sparse official one... This is as thorough as experimentation can get... Command line afplay, August 2016. --------------------------------- afplay -h ... (0 Replies)
Discussion started by: wisecracker
0 Replies

10. OS X (Apple)

A means of clearing the scroll buffer in an OSX Terminal.

I was looking for a method of clearing the buffer of the vertical scroll back slider and came across this little Terminal escape snippet I had never seen before: printf "%b" "\033 SO... printf "%b" "\033c\033 Performs a terminal reset, buffer clearance, clear the window, set back to default... (0 Replies)
Discussion started by: wisecracker
0 Replies
vte(1)								   User Commands							    vte(1)

NAME
vte - virtual terminal emulator SYNOPSIS
vte [-2] [-A] [-a] [-B image] [-b] [-C] [-c command] [-D] [-d] [-f font] [-g] [-h] [-i] [-k] [-n] [-r] [-S] [-s] [-T] [-t terminal-type] DESCRIPTION
vte is simply a window wrapped around the vte embeddable terminal emulation control, which does most of the work for gnome-terminal. vte is used mainly to test the control. Most users do not need to use vte directly, but use gnome-terminal instead. OPTIONS
The following options are supported: -2 Toggle double buffering. Enabled by default. -A Toggle antialiasing. The default is that of the current GTK+ default. -a Toggle audible bell on/off. If audible bell is enabled, visible bell is disabled. If audible bell is disabled, visible bell is enabled. Audible bell enabled by default. -B image Use image as background. -b Toggle cursor blinking. Enabled by default. -C Open a "console" connection. -c command Fork the specified command. -D Use dingus clicking: as the cursor moves over text matching a certain pattern, the matched text is highlighted and the cur- sor changes shape. Disabled by default. -d Toggle update debugging. Disabled by default. -f font Specify the font to use. Default font is "Sans 12". -g Toggle whether to set geometry hints if font is changed. Enabled by default. -h Toggle highlighting. Disabled by default. -i Toggle whether to obey attempts to set the icon name, if applications running in the terminal request this. -k Toggle whether to keep program running after GTK main loop. Disabled by default. -n Specify the number of scrollback lines. Minumum number of scrollback lines is 100. Default number of scrollback lines is 100. -r Toggle whether to set cursor color to pale red. Disabled by default. -S Toggle launching a shell. Enabled by default. -s Toggle whether to scroll background image along with text. This option is only useful when combined with the -B option. Disabled by default. -T Use transparent background. Overrides the -B option. -t terminal-typeSpecify the terminal type to emulate. EXTENDED DESCRIPTION
vte is designed to emulate the xterm program provided by the X Consortium. In turn, xterm is an almost complete emulation of the DEC VT102 terminal. vte supports the same extensions to VT102 as those provided by xterm, through special escape sequences. xterm is an evolving program. Recent changes to xterm have been been incorporated into vte. This includes emulation of the newer DEC VT220 escape sequences. EXAMPLES
Example 1: Launching the Virtual Terminal Emulator example% vte ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables: VTE_PROFILE_MEMORY Virtualize memory allocation for debugging purposes. EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/vte Executable for virtual terminal emulator ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWvte | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
gnome-terminal(1), xterm(1), libvte(3) NOTES
Written by Johan Steyn, Sun Microsystems Inc., 2004. SunOS 5.10 6 Sep 2004 vte(1)
All times are GMT -4. The time now is 02:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy