ANSI command-sequences A look at some terminal emulation features utilized in the “console- redirection” mechanism.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

User Preferences – List Views Select “User Preference” from the File Menu.
DOS and BIOS Interrupts DOS and BIOS interrupts are used to perform some very useful functions, such as displaying data to the monitor, reading data from.
Programming In C++ Spring Semester 2013 Lecture 8 Programming In C++, Lecture 8 By Umer Rana.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
Structured Problem Solving Object- Oriented Concepts 1.
More about procedures and Video Processing. Lesson plan Review existing concepts More about procedures and boolean expression Video processing.
Important Irvine Library Procedures Randomize Randomize –Initializes the seed of the random-number formula by both the Random32 and the RandomRange procedures.
Assembly Language for Intel-Based Computers Chapter 15: BIOS-Level Programming (c) Pearson Education, All rights reserved. You may modify and.
© red ©
Using x86 “protected mode” on our anchor-cluster’s machines A look at some terminal emulation features utilized in the “console- redirection” mechanism.
Fix the black point You wil see the gray dissolving Clic for another illusion.
Timeout for some demos An instructive look at how the Linux Operating System sets up system data-structures.
2D Graphics in Java COMP53 Nov 14, Applets and Applications Java applications are stand-alone programs – start execution with main() – runs in JVM.
Chapter 7 Programming with DOS and BIOS Function Calls Objectives: The use of DOS and BIOS function call How to read the PC’s keyboard How to send text.
Dynamic visualizations On ‘non-canonical’ keyboard-input and terminal escape-sequences for visualization effects.
Kip Irvine: Assembly Language for Intel-Based Computers
Screen Display Module M15.2 Sections 9.5, 13.1, 13.2.
Assembly Language for Intel-Based Computers, 4 th Edition Chapter 5: Procedures (c) Pearson Education, All rights reserved. You may modify and copy.
RGB color model Skills: none IT concepts: combining red, green and blue light to generate colors This work is licensed under a Creative Commons Attribution-Noncommercial-
8086 emulation Using Virtual-8086 mode to execute real-mode procedures in a protected-mode environment.
Adv Graphical Enablement In this presentation… –Working with color schemes. –Working with newlook filters. –Tips to assist recognition of the iSeries 5250.
1 Semester 2 Module 2 Introduction to Routers Yuda college of business James Chen
Or CMD/BATCH.  Title this comand makes the cmd prompt’s title whatever you would like it to be.
Serial Communication Lab 12 Module M21.1. Asynchronous Serial I/O ASCII code 54H = (“T”) sent with odd parity.
ORG ; FOUR INT 21H and INT 10H Programming and Macros Dec Hex Bin
Chapter Nine Advanced Shell Scripting1 System Programming Advanced Shell Scripting.
Objective Understand concepts used to create digital graphics. Course Weight : 15% Part Three : Concepts of Digital Graphics.
VISUAL C++ PROGRAMMING: CONCEPTS AND PROJECTS Chapter 1B Introduction (Tutorial)
Digital Terminology. Bitmap A representation consisting of rows and columns of dots of a graphic image stored in computer memory. To display a bitmap.
ECE291 Computer Engineering II Lecture 9 Josh Potts University of Illinois at Urbana- Champaign.
Getting Started with HTML Please use speaker notes for additional information!
Java Spring PImage Let’s look at the PImage class in ProcessingPImage –What are the fields (i.e., variables)? –What methods are available? –What.
Text-Mode Programming Question #1 What are the three levels of access to the video display when writing characters on the screen in text mode?
Do Now: Do Not Log In. Take out your notebook and a pen. Good morning! Do Now: Do Not Log In. Take out your notebook and a pen. Good morning! Aim: Review.
Graphic Basics in C ATS 315. The Graphics Window Will look something like this.
B. RAMAMURTHY Simulating Motion and Implementing Animation.
Video systems. Lesson plan Review the code for the previous exercise Video systems Review for midterm exam.
Intro to OpenGL (Version 2) Geb Thomas. Setting Up GLUT You will need GLUT for opening windows We can use the version made by Nate Robins: –
10H Interrupt. Option 0H – Sets video mode. Registers used: – AH = 0H – AL = Video Mode. 3H - CGA Color text of 80X25 7H - Monochrome text of 80X25 Ex:
Agenda Computer Languages How to Write a Simple C Program
Colors of Pigment The primary colors of pigment are magenta, cyan, and yellow. [
What color does this represent? Each of these dots represents a PIXEL … a dot of color on a screen.
May 20, 2005Wah-kai Ngai1 Basic Visualization Tutorial Using Geant4.
Intro to Color Theory. Objectives Identify and discuss various color models including RGB, CMYK, Black/white and spot color. Investigate color mixing.
Introduction to Graphics. Graphical objects To draw pictures, we will use three classes of objects: –DrawingPanel : A window on the screen. –Graphics.
1.02 Color Here we go AGAIN!. A chart used to choose colors—helps you choose colors that look good together. Color Palette.
Computer Programming A simple example /* HelloWorld: A simple C program */ #include int main (void) { printf (“Hello world!\n”); return.
Web Interface Design Basic GUI and Web layouts Fig H.12: Basic Layouts of Web and Graphic User Interfaces.
Print Row Function void PrintRow(float x[ ][4],int i) { int j; for(j=0;j
4. Value & Color Motion is a kind of change, and change takes place in time. Motion can be implied, as well as literal.
Lecture 11 Text mode video
Direct-Access Color Graphics Chapter 11. Graphics modes C++ provides a different combination of graphics characteristics. These characteristics include.
Processing the image with Python
Watch Pete the Cat here:
9/17/2018 Kiến Trúc Máy Tính.
Microprocessor and Assembly Language
Stylish Black Table Features Plan 1 Plan 2 Plan 3 Plan 4 Total 49894
Programming Graphic LCD
Programming Graphic LCD
Two ways to discuss color 1) Addition 2) Subtraction
Programming Graphic LCD
Programming Graphic LCD
What Color is it?.
Programming Graphic LCD
Programming Graphic LCD
Science Olympiad Optics Color and Shadows.
Using SQL*Plus.
Penetration Testing & Network Defense
More on operators and procedures in the Linked
Presentation transcript:

ANSI command-sequences A look at some terminal emulation features utilized in the “console- redirection” mechanism

Clearing the screen Here is an ANSI command-sequence that clears the terminal’s display-screen: charcmd[] = “\033[2J”; intlen = strlen( cmd ); write( 1, cmd, len );

Reposition the cursor Here is an ANSI command-sequence that moves the cursor to row 12, column 40: charcmd[] = “\033[12;40H”; intlen = strlen( cmd ); write( 1, cmd, len );

ANSI color-codes 0 = black 1 = red 2 = green 3 = brown 4 = blue 5 = magenta 6 = cyan 7 = gray

Setting text attributes Here is an ANSI command-sequence that sets foreground and background colors: charcmd[] = “\033[32;44m”; intlen = strlen( cmd ); write( 1, cmd, len );

Cursor visibility commands Here are ANSI command-sequences that will ‘hide’ or ‘show’ the terminal’s cursor: charhide[] = “\033[?25l”;// lowercase L charshow[] = “\033[?25h”;// lowercase H

Demo-program We created a boot-time program (called ‘emitinfo.s’) that shows how a protected- mode exception-handler can send some diagnostic information via the serial null- modem cable to a remote machine that is running a ‘terminal emulator’ application

In-class exercise Modify this simple C++ program so that it will print its “Hello” message in colors and be located in the center of the screen: #include int main( void ) { printf( “Hello, world! \n” ); }

In-class exercise #2 and #3 Modify the ‘emitinfo.s’ program so that it will also display the FS and GS registers Modify the ‘emitinfo.s’ program so that its ‘isrGPF’ exception-handler will execute in 64-bit mode (on your ‘anchor’ machine)