Sponsored Content
Full Discussion: IBM Code Page 437...
Operating Systems Linux IBM Code Page 437... Post 303037280 by wisecracker on Monday 29th of July 2019 04:09:37 AM
Old 07-29-2019
IBM Code Page 437...

Hi all...

Reference this URL:
Lower ASCII characters.

Researching in google for an answer showed the numerous times this has been asked for in various guises.

So it inspired me to create a pseudo-IBM Code Page 437, the default ROM CGA-SVGA character set of yesteryear.
It really needs no step by step description as the code and images really speak for themselves.

This is now entirely owned by UNIX.COM...
Code:
#!/bin/bash
# GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu)
# Copyright © 2016 Free Software Foundation, Inc.
#
# Linux Mint 19, current update as of 28-07-2019.
#
# Author B.Walker, G0LCU - Issued as CC0 licence, (Public Domain), to UNIX.COM.
#
# CP437.sh
# Fun IBM Style Pseudo-CodePage 437 Demo...
#
# NOTE: The standard ASCII characters REMAIN STANDARD!

chr=( ' ' '☺' '☻' '♥' '♦' '♣' '♠' '-' '-' '-' '-' '♂' '♀' '♪' '♫' '☼' '-' '-' '↕' '' '¶' '§' '-' '↨' '↑' '↓' ''' '←' '∟' '↔' '-' '-' ' ' '!' '"' '#' '$' '%' '&' "'" '(' ')' '*' '+' ',' '-' '.' '/' '0' '1' '2' '3' '4' '5' '6' '7' '8' '9' ':' ';' '<' '=' '>' '?' '@' 'A' 'B' 'C' 'D' 'E' 'F' 'G' 'H' 'I' 'J' 'K' 'L' 'M' 'N' 'O' 'P' 'Q' 'R' 'S' 'T' 'U' 'V' 'W' 'X' 'Y' 'Z' '[' '\' ']' '^' '_' '`' 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 'u' 'v' 'w' 'x' 'y' 'z' '{' '|' '}' '~' '⌂' 'Ç' 'ü' 'é' 'â' 'ä' 'à' 'å' 'ç' 'ê' 'ë' 'è' 'ï' 'î' 'ì' 'Ä' '...' 'É' 'æ' 'Æ' 'ô' 'ö' 'ò' 'û' 'ù' 'ÿ' '-' 'Ü' '¢' '£' '¥' '₧' ''' 'á' 'í' 'ó' 'ú' 'ñ' 'Ñ' 'ª' 'º' '¿' '⌐' '¬' '½' '¼' '¡' '«' '»' '-' '-'' '-' '│' '┤' '╡' '╢' '-' '╕' '╣' '║' '-' '╝' '╜' '╛' '┐' '└' '┴' '┬' '├' '─' '┼' '╞' '╟' '╚' '╔' '╩' '╦' '╠' '═' '╬' '╧' '╨' '╤' '╥' '╙' '╘' ''' '╓' '╫' '╪' '┘' '┌' '-' '-' '-' '-' '-' 'α' 'ß' 'Γ' 'π' 'Σ' 'σ' 'µ' 'τ' 'Φ' 'Θ' 'Ω' 'δ' '∞' 'φ' 'ε' '∩' '≡' '±' '≥' '≤' '⌠' '⌡' '÷' '≈' '°' '∙' '·' '√' 'ⁿ' '²' '-' ' ' )

# This loop demonstrates array access.
for n in {0..255}
do
    # printf "Character ${n} = %s\n" "${chr[${n}]}"
    printf "%s" "${chr[${n}]}"
done > IBM_ASCII

# This section demonstrates 'bash' style string slicing from a variable.
echo ""
ext_ascii=$( cat IBM_ASCII )
echo "${ext_ascii}"
echo ""
echo "This is the full sized block character:- '"${ext_ascii:219:1}"'..."
echo "This is the NULL character, 0:- '"${ext_ascii:0:1}"', and is given a space character..."
echo "Similarly the BLANK character, 255:- '"${ext_ascii:255:1}"', and also given a space character..."
echo ""

IBM Code Page 437...-cp437_terminalpng
IBM Code Page 437...-cp437png

Last edited by wisecracker; 07-29-2019 at 05:22 AM..
These 4 Users Gave Thanks to wisecracker For This Post:
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Code page in Unix

Hi, Can someone tell me how do I find the list of comptabile codepages on Linux(suse) , Is it /usr/lib/locale or somewhere else ? I was wandering if someone has expereince in using cycrillic chars (russian) in unix / linux ? Thanks (2 Replies)
Discussion started by: braindrain
2 Replies

2. High Performance Computing

IBM Scheduler for High Throughput Computing on IBM Blue Gene P

A lightweight scheduler that supports high-throughput computing (HTC) applications on Blue Gene/P. (NEW: 06/12/2008 in grid) More... (0 Replies)
Discussion started by: Linux Bot
0 Replies

3. Shell Programming and Scripting

Getting source code of a page

I want to download a particular page from the internet and get the source code of the page in html format. I want to parse the source code to find a specific parameters using grep command. could someone tell me the linux command to download a specific page and parse the source code of it. ... (1 Reply)
Discussion started by: ahamed
1 Replies

4. AIX

IBM AIX on IBM Eseries & x series server

Hi, I want to know whether IBM AIX can be installed on the IBM e series and x series server hardware? Thanks & Regards Arun (2 Replies)
Discussion started by: Arun.Kakarla
2 Replies

5. Hardware

IBM 3583 Tape Drive License Feature Code

Team , currently I am doing some inventory on our hardware. I know that the old school IBM 3583 tape drive has some license feature enable but I dont know where can I check If the feature currently enable or not on our drive... Ive checked trough Web Base and Panel base but nowhere I... (0 Replies)
Discussion started by: thermometer
0 Replies

6. AIX

Code Page IBM-860

Helo all, I' trying to print Portuguese special characters like , , , . I already set my print queue for CODE PAGE of printer ibm.860 but every time i send a print test i receive the following error: 0782-059 Attribute name passed to subroutine piocmdout by program... (2 Replies)
Discussion started by: marques_rmc
2 Replies

7. UNIX for Dummies Questions & Answers

Difference between code page used with grep and vi

Not certain the title is phrased correctly but here's the issue: I need to scrape data out of a pdf file. I ftp the file from windows to unix(solaris 10) as a binary file. Open the file in vi and search for a string, Matrix, but no joy. Then I cat the same file, pipe it to grep 'Matrix' and the... (3 Replies)
Discussion started by: rj0
3 Replies

8. AIX

IBM Virtual Machine OS on intel x86 and x64? IBM AIX OS on IBM Virtual Machine?

Hi There, I have zero information and zero knowledge for IBM virtual machine except Amazon cloud and VMware ESXi (Only Linux OS available). Anyone could provide me the following answer - Can IBM VM been deploy on X86 and X64 (Intel Chip)? If answer is yes any chance to deploy AIX OS... (13 Replies)
Discussion started by: chenyung
13 Replies
All times are GMT -4. The time now is 06:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy