dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnet/include il_console.h, NONE, 1.1 il_utils.h, 1


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnet/include il_console.h, NONE, 1.1 il_utils.h, 1.24, 1.25
Date: Mon, 03 Nov 2003 05:18:24 +0000

Update of /cvsroot/dotgnu-pnet/pnet/include
In directory subversions:/tmp/cvs-serv3790/include

Modified Files:
        il_utils.h 
Added Files:
        il_console.h 
Log Message:


Check in the new console implementation.


--- NEW FILE: il_console.h ---
/*
 * il_console.h - Console I/O routines.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef _IL_CONSOLE_H
#define _IL_CONSOLE_H

#include "il_values.h"

#ifdef  __cplusplus
extern  "C" {
#endif

/*
 * Mode values for "ILConsoleSetMode".
 */
#define IL_CONSOLE_NORMAL               0
#define IL_CONSOLE_CBREAK               1
#define IL_CONSOLE_RAW                  2
#define IL_CONSOLE_CBREAK_ALT   3
#define IL_CONSOLE_RAW_ALT              4

/*
 * Set the current console mode.
 */
void ILConsoleSetMode(ILInt32 mode);

/*
 * Get the current console mode.
 */
ILInt32 ILConsoleGetMode(void);

/*
 * Emit a beep on the console.
 */
void ILConsoleBeep(void);

/*
 * Clear the console to the current foreground and background colors.
 */
void ILConsoleClear(void);

/*
 * Determine if there is a key available to be read.
 */
int ILConsoleKeyAvailable(void);

/*
 * Read the next key from the console.
 */
void ILConsoleReadKey(ILUInt16 *ch, ILInt32 *key, ILInt32 *modifiers);

/*
 * Set the position of the console cursor.
 */
void ILConsoleSetPosition(ILInt32 x, ILInt32 y);

/*
 * Get the position of the console cursor.
 */
void ILConsoleGetPosition(ILInt32 *x, ILInt32 *y);

/*
 * Get the size of the scrollback buffer.
 */
void ILConsoleGetBufferSize(ILInt32 *width, ILInt32 *height);

/*
 * Get the size and position of the visible window area.
 */
void ILConsoleGetWindowSize(ILInt32 *left, ILInt32 *top,
                                                        ILInt32 *width, ILInt32 
*height);

/*
 * Set the title on the console window.
 */
void ILConsoleSetTitle(const char *title);

/*
 * Set the foreground and background attributes.
 */
void ILConsoleSetAttributes(ILInt32 attrs);

/*
 * Write a character to the console.
 */
void ILConsoleWriteChar(ILInt32 ch);

#ifdef  __cplusplus 
};
#endif

#endif  /* _IL_CONSOLE_H */

Index: il_utils.h
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/include/il_utils.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** il_utils.h  29 Aug 2003 04:58:47 -0000      1.24
--- il_utils.h  3 Nov 2003 05:18:21 -0000       1.25
***************
*** 531,555 ****
  void *ILQueueRemove(ILQueueEntry **listRoot);
  
- /*
-  * Get a single character from the input stream.
-  */
- int ILInputGetChar(void);
- 
- /*
-  * Push a character back into the input stream.
-  */
- void ILInputUngetChar(int ch);
- 
- /*
-  * Read a single line from the input stream, including the terminating '\n'.
-  * Returns zero if EOF is detected.
-  */
- int ILInputReadLine(void *buffer, int len);
- 
- /*
-  * Read a buffer of bytes from the input stream.
-  */
- int ILInputRead(void *buffer, int len);
- 
  #ifdef        __cplusplus
  };
--- 531,534 ----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]