/* @(#)root/clib:$Id: Getline.h 20882 2007-11-19 11:31:26Z rdm $ */ /* Author: */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_Getline #define ROOT_Getline #ifndef ROOT_DllImport #include "DllImport.h" #endif #ifndef __CINT__ #ifdef __cplusplus extern "C" { #endif #endif typedef enum { kInit = -1, kLine1, kOneChar, kCleanUp } EGetLineMode; char *Getline(const char *prompt); char *Getlinem(EGetLineMode mode, const char *prompt); void Gl_config(const char *which, int value); void Gl_setwidth(int width); void Gl_windowchanged(); void Gl_histsize(int size, int save); void Gl_histinit(char *file); void Gl_histadd(char *buf); int Gl_eof(); R__EXTERN int (*Gl_in_hook)(char *buf); R__EXTERN int (*Gl_out_hook)(char *buf); R__EXTERN int (*Gl_tab_hook)(char *buf, int prompt_width, int *cursor_loc); R__EXTERN int (*Gl_beep_hook)(); R__EXTERN int (*Gl_in_key)(int key); #ifndef __CINT__ #ifdef __cplusplus } #endif #endif #endif