- Main Page
- Data Structures
- Files
- Directories

- Search for |

- File List
- Globals

# tty.h

Go to the documentation of this file.

    00001 /*****************************************************************************************
    00002  Copyright (c) 2002-2004 The UbixOS Project
    00003  All rights reserved.
    00004
    00005  Redistribution and use in source and binary forms, with or without modification, are
    00006  permitted provided that the following conditions are met:
    00007
    00008  Redistributions of source code must retain the above copyright notice, this list of
    00009  conditions, the following disclaimer and the list of authors.  Redistributions in binary
    00010  form must reproduce the above copyright notice, this list of conditions, the following
    00011  disclaimer and the list of authors in the documentation and/or other materials provided
    00012  with the distribution. Neither the name of the UbixOS Project nor the names of its
    00013  contributors may be used to endorse or promote products derived from this software
    00014  without specific prior written permission.
    00015
    00016  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
    00017  EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    00018  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
    00019  THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    00020  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
    00021  OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    00022  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
    00023  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
    00024  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    00025
    00026  $Id: tty_8h-source.html 88 2016-01-12 00:11:29Z reddawg $
    00027
    00028 *****************************************************************************************/
    00029
    00030 #ifndef _TTY_H
    00031 #define _TTY_H
    00032
    00033 #include <ubixos/types.h>
    00034
    00035 #define TTY_MAX_TERMS 5
    00036
    00037 typedef struct tty_termNode {
    00038   char    *tty_buffer;
    00039   char    *tty_pointer;
    00040   uInt8    tty_colour;
    00041   uInt16   tty_x;
    00042   uInt16   tty_y;
    00043   pidType  owner;
    00044   char     stdin[512];
    00045   int      stdinSize;
    00046   } tty_term;
    00047
    00048 int tty_init();
    00049 int tty_change(uInt16);
    00050 tty_term *tty_find(uInt16);
    00051 int tty_print(char *,tty_term *);
    00052
    00053 extern tty_term *tty_foreground;
    00054
    00055 #endif
    00056
    00057 /***
    00058  $Log: tty_8h-source.html,v $
    00058  Revision 1.7  2006/12/15 17:47:08  reddawg
    00058  Updates
    00058
    00059  Revision 1.1.1.1  2006/06/01 12:46:14  reddawg
    00060  ubix2
    00061
    00062  Revision 1.2  2005/10/12 00:13:37  reddawg
    00063  Removed
    00064
    00065  Revision 1.1.1.1  2005/09/26 17:23:57  reddawg
    00066  no message
    00067
    00068  Revision 1.8  2004/09/06 22:11:29  reddawg
    00069  tty: now each tty has a stdin....
    00070
    00071  Revision 1.7  2004/08/14 11:23:02  reddawg
    00072  Changes
    00073
    00074  Revision 1.6  2004/08/09 12:58:05  reddawg
    00075  let me know when you got the surce
    00076
    00077  Revision 1.5  2004/08/09 05:40:31  reddawg
    00078  tty: removed current and made a foreground
    00079
    00080  Revision 1.4  2004/08/06 22:32:16  reddawg
    00081  Ubix Works Again
    00082
    00083  Revision 1.2  2004/08/04 08:17:57  reddawg
    00084  tty: we have primative ttys try f1-f5 so it is easier to use and debug
    00085       ubixos
    00086
    00087  Revision 1.1  2004/08/03 21:44:24  reddawg
    00088  ttys
    00089
    00090  END
    00091  ***/
    00092