User Tools

Site Tools


terminal_setup_osx

This is an old revision of the document!


Configuring OSX Terminal.App

The following steps can be used to make using Mystic a joy with OSX's Terminal.App so that a simple login icon can be created to log right into your BBS, or type ./mystic on the command prompt will give you a nice looking and working BBS login.

This guide was written using OSX Lion, so some option names may change in future versions.

Configuration Steps

  • Open the Terminal.app and use the top window bar to select “Terminal > Preferences”
  • Set the style to “Pro” to give a decent starting point, with a black background, etc.
  • Now we need to fix the keys so that home/end/pageup/pagedown works in the BBS instead of moving the stupid terminal scrollback! Do this by clicking on the keyboard tab and make the following changes to the existing key definitions for the following keys:
     Key: End
     Modifier: None
     Action: Send String to Shell
     Text: (ESCAPE) [ K (press those keys and it should read \033[K )
     
     Now do the same for HOME but set it to (ESCAPE)[H  (it should read \033[H)

     Now do the same for PAGEDOWN but set it to (ESCAPE)[6~ (it should read \033[6~)
     
     Now do the same for PAGEUP but set it to (ESCAPE)[5~ (it should read \033[5~)
  • Under the Text tab, set the following values to fix up the font:
     Font: Andale Mono 24pt
     Character Spacing: .998
     Line Spacing: .928
     
     [X] Antialias text
     [X] Use bold fonts
     [X] Allow blinking text
     [X] Display ANSI colors
     [X] Use bright colors for bold
     
     On the "Text" and "Bold" boxes on the right, click and increase the RGB sliders
     to 255 for all 3 values (red, green, and blue).
  • Under the Windows tab set Window Size to 80×25 lines, and then click the background, where you can set that to black and the opacity to 100% (or if you like a little transparency 85 or 90 works well too)

Accurate DOS ANSI Colors

Each of the ANSI color can be configured with RGB values within Terminal.App. By default they are not quite 100% accurate to the DOS versions of the same colors, but for the most part the defaults aren't bad.

However, if you want to attempt to get the most accurate color reproduction as possible, the following values can be used to match the actual DOS colors:

Color Name Red Green Blue
Black 000 000 000
Blue 000 000 170
Green 000 170 000
Cyan 000 170 170
Red 170 000 000
Magenta 170 00 170
Yellow 170 085 000
White 170 170 170
Bright Black 085 085 085
Bright Blue 085 085 255
Bright Green 085 255 085
Bright Cyan 085 255 255
Bright Red 255 085 085
Bright Magenta 255 085 255
Bright Yellow 255 255 085
Bright White 255 255 255

Configuring Mystic for UTF8 Local Mode

In order to start Mystic BBS in UTF8 mode during local login, you need to open the Mystic Configuration and navigate in the menus to System Configuration > Login/Matrix Settings. Find the Local CodePage option and set the value to UTF8. This tells Mystic that it should use UTF8 encoding whenever the local flag is supplied on startup.

Now when you start Mystic you'll want to start it with a “./mystic -l” using the -l flag to specify it is a local mode. This flag also tells Mystic to ask for a local file name instead of using a transfer protocol for things like message uploading or exporting from the message reader (among other things), so it already should be something you're using as part of your local login command.

You could also create an icon to click that runs this command so that locally logging into your BBS is just a click away!

terminal_setup_osx.1458824265.txt.gz · Last modified: 2016/03/24 07:57 by g00r00

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki