summaryrefslogtreecommitdiff
path: root/app/xterm/xterm.h
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2008-02-16 09:40:01 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2008-02-16 09:40:01 +0000
commitb167c48bd3432744ac7c52759b6c7d4bdde76b69 (patch)
treeb0c404e8aaf332198d86e860d959f524b94b7bb6 /app/xterm/xterm.h
parente8b6624a43e161b556c35d5483247f75d7420a9c (diff)
Merge xterm 232.
New local change: default value for pointerMode is 0.
Diffstat (limited to 'app/xterm/xterm.h')
-rw-r--r--app/xterm/xterm.h38
1 files changed, 27 insertions, 11 deletions
diff --git a/app/xterm/xterm.h b/app/xterm/xterm.h
index 01e17b77d..4e92f18e4 100644
--- a/app/xterm/xterm.h
+++ b/app/xterm/xterm.h
@@ -1,10 +1,8 @@
-/* $XTermId: xterm.h,v 1.482 2007/07/22 20:14:48 tom Exp $ */
-
-/* $XFree86: xc/programs/xterm/xterm.h,v 3.117 2006/06/19 00:36:52 dickey Exp $ */
+/* $XTermId: xterm.h,v 1.498 2008/01/30 00:50:07 tom Exp $ */
/************************************************************
-Copyright 1999-2006,2007 by Thomas E. Dickey
+Copyright 1999-2007,2008 by Thomas E. Dickey
All Rights Reserved
@@ -334,6 +332,8 @@ extern char **environ;
#define XK_Fn(n) (XK_F1 + (n) - 1)
+#define Maybe 2
+
/***====================================================================***/
#define XtNallowC1Printable "allowC1Printable"
@@ -399,6 +399,7 @@ extern char **environ;
#define XtNforceBoxChars "forceBoxChars"
#define XtNfreeBoldBox "freeBoldBox"
#define XtNhighlightColor "highlightColor"
+#define XtNhighlightColorMode "highlightColorMode"
#define XtNhighlightReverse "highlightReverse"
#define XtNhighlightSelection "highlightSelection"
#define XtNhighlightTextColor "highlightTextColor"
@@ -408,6 +409,7 @@ extern char **environ;
#define XtNinternalBorder "internalBorder"
#define XtNitalicULMode "italicULMode"
#define XtNjumpScroll "jumpScroll"
+#define XtNkeepSelection "keepSelection"
#define XtNkeyboardDialect "keyboardDialect"
#define XtNlimitResize "limitResize"
#define XtNlocale "locale"
@@ -433,6 +435,7 @@ extern char **environ;
#define XtNnMarginBell "nMarginBell"
#define XtNnumLock "numLock"
#define XtNoldXtermFKeys "oldXtermFKeys"
+#define XtNpointerMode "pointerMode"
#define XtNpointerColor "pointerColor"
#define XtNpointerColorBackground "pointerColorBackground"
#define XtNpointerShape "pointerShape"
@@ -443,6 +446,7 @@ extern char **environ;
#define XtNprinterControlMode "printerControlMode"
#define XtNprinterExtent "printerExtent"
#define XtNprinterFormFeed "printerFormFeed"
+#define XtNquietGrab "quietGrab"
#define XtNrenderFont "renderFont"
#define XtNresizeGravity "resizeGravity"
#define XtNreverseWrap "reverseWrap"
@@ -542,12 +546,14 @@ extern char **environ;
#define XtCFontStyle "FontStyle"
#define XtCForceBoxChars "ForceBoxChars"
#define XtCFreeBoldBox "FreeBoldBox"
+#define XtCHighlightColorMode "HighlightColorMode"
#define XtCHighlightReverse "HighlightReverse"
#define XtCHighlightSelection "HighlightSelection"
#define XtCHpLowerleftBugCompat "HpLowerleftBugCompat"
#define XtCI18nSelections "I18nSelections"
#define XtCInitialFont "InitialFont"
#define XtCJumpScroll "JumpScroll"
+#define XtCKeepSelection "KeepSelection"
#define XtCKeyboardDialect "KeyboardDialect"
#define XtCLimitResize "LimitResize"
#define XtCLocale "Locale"
@@ -572,6 +578,7 @@ extern char **environ;
#define XtCMultiScroll "MultiScroll"
#define XtCNumLock "NumLock"
#define XtCOldXtermFKeys "OldXtermFKeys"
+#define XtCPointerMode "PointerMode"
#define XtCPopOnBell "PopOnBell"
#define XtCPrintAttributes "PrintAttributes"
#define XtCPrinterAutoClose "PrinterAutoClose"
@@ -579,6 +586,7 @@ extern char **environ;
#define XtCPrinterControlMode "PrinterControlMode"
#define XtCPrinterExtent "PrinterExtent"
#define XtCPrinterFormFeed "PrinterFormFeed"
+#define XtCQuietGrab "QuietGrab"
#define XtCRenderFont "RenderFont"
#define XtCResizeGravity "ResizeGravity"
#define XtCReverseWrap "ReverseWrap"
@@ -678,6 +686,7 @@ extern void TekSimulatePageButton (TekWidget /* tw */, Bool /* reset */);
extern Bool SendMousePosition (XtermWidget /* w */, XEvent* /* event */);
extern void DiredButton PROTO_XT_ACTIONS_ARGS;
extern void DisownSelection (XtermWidget /* termw */);
+extern void UnhiliteSelection (XtermWidget /* termw */);
extern void HandleInsertSelection PROTO_XT_ACTIONS_ARGS;
extern void HandleKeyboardSelectEnd PROTO_XT_ACTIONS_ARGS;
extern void HandleKeyboardSelectExtend PROTO_XT_ACTIONS_ARGS;
@@ -725,13 +734,13 @@ extern GC freeCgs(XtermWidget /*xw*/, VTwin * /*cgsWin*/, CgsEnum /*cgsId*/);
extern GC getCgsGC(XtermWidget /*xw*/, VTwin * /*cgsWin*/, CgsEnum /*cgsId*/);
extern Pixel getCgsBack(XtermWidget /*xw*/, VTwin * /*cgsWin*/, GC /*gc*/);
extern Pixel getCgsFore(XtermWidget /*xw*/, VTwin * /*cgsWin*/, GC /*gc*/);
-extern XFontStruct * getCgsFont(XtermWidget /*xw*/, VTwin * /*cgsWin*/, GC /*gc*/);
-extern void clrCgsFonts(XtermWidget /*xw*/, VTwin * /*cgsWin*/, XFontStruct * /*font*/);
+extern XTermFonts * getCgsFont(XtermWidget /*xw*/, VTwin * /*cgsWin*/, GC /*gc*/);
+extern void clrCgsFonts(XtermWidget /*xw*/, VTwin * /*cgsWin*/, XTermFonts * /*font*/);
extern void copyCgs(XtermWidget /*xw*/, VTwin * /*cgsWin*/, CgsEnum /*dstCgsId*/, CgsEnum /*srcCgsId*/);
extern void redoCgs(XtermWidget /*xw*/, Pixel /*fg*/, Pixel /*bg*/, CgsEnum /*cgsId*/);
extern void setCgsBack(XtermWidget /*xw*/, VTwin * /*cgsWin*/, CgsEnum /*cgsId*/, Pixel /*bg*/);
extern void setCgsCSet(XtermWidget /*xw*/, VTwin * /*cgsWin*/, CgsEnum /*cgsId*/, unsigned /*cset*/);
-extern void setCgsFont(XtermWidget /*xw*/, VTwin * /*cgsWin*/, CgsEnum /*cgsId*/, XFontStruct * /*font*/);
+extern void setCgsFont(XtermWidget /*xw*/, VTwin * /*cgsWin*/, CgsEnum /*cgsId*/, XTermFonts * /*font*/);
extern void setCgsFore(XtermWidget /*xw*/, VTwin * /*cgsWin*/, CgsEnum /*cgsId*/, Pixel /*fg*/);
extern void swapCgs(XtermWidget /*xw*/, VTwin * /*cgsWin*/, CgsEnum /*dstCgsId*/, CgsEnum /*srcCgsId*/);
@@ -742,7 +751,7 @@ extern void noleaks_cachedCgs (XtermWidget /* xw */);
/* charproc.c */
extern int VTInit (void);
extern int v_write (int /* f */, Char * /* d */, unsigned /* len */);
-extern void FindFontSelection (XtermWidget /* xw */, char * /* atom_name */, Bool /* justprobe */);
+extern void FindFontSelection (XtermWidget /* xw */, const char * /* atom_name */, Bool /* justprobe */);
extern void HideCursor (void);
extern void ShowCursor (void);
extern void SwitchBufPtrs (TScreen * /* screen */);
@@ -810,10 +819,12 @@ extern void xterm_DECSWL (XtermWidget /* xw */);
extern void xterm_DECDWL (XtermWidget /* xw */);
#if OPT_DEC_CHRSET
extern int xterm_Double_index(XtermWidget /* xw */, unsigned /* chrset */, unsigned /* flags */);
-extern GC xterm_DoubleGC(XtermWidget /* xw */, unsigned /* chrset */, unsigned /* flags */, GC /* old_gc */);
+extern GC xterm_DoubleGC(XtermWidget /* xw */, unsigned /* chrset */, unsigned /* flags */, GC /* old_gc */, int * /* inxp */);
#endif
/* input.c */
+extern int xtermParamToState (XtermWidget /* xw */, unsigned /* param */);
+extern int xtermStateToParam (XtermWidget /* xw */, unsigned /* state */);
extern Bool xtermDeleteIsDEL (XtermWidget /* xw */);
extern void Input (XtermWidget /* xw */, XKeyEvent */* event */, Bool /* eightbit */);
extern void StringInput (XtermWidget /* xw */, Char * /* string */, size_t /* nbytes */);
@@ -910,7 +921,9 @@ extern void timestamp_filename(char * /* dst */, const char * /* src */);
extern void xevents (void);
extern void xt_error (String /* message */);
extern void xtermCopyEnv (char ** /* oldenv */);
+extern void xtermDisplayCursor (XtermWidget /* xw */);
extern void xtermSetenv (char * /* var */, char * /* value */);
+extern void xtermShowPointer (XtermWidget /* xw */, Bool /* enable */);
#if OPT_DABBREV
extern void HandleDabbrevExpand PROTO_XT_ACTIONS_ARGS;
@@ -992,7 +1005,7 @@ extern void ScrnClearCells (XtermWidget /* xw */, int /* row */, int /* col */,
extern void ScrnDeleteChar (XtermWidget /* xw */, unsigned /* n */);
extern void ScrnDeleteLine (XtermWidget /* xw */, ScrnBuf /* sb */, int /* n */, int /* last */, unsigned /* size */, unsigned /* where */);
extern void ScrnDisownSelection (XtermWidget /* xw */);
-extern void ScrnFillRectangle (XtermWidget /* xw */, XTermRect *, int , unsigned);
+extern void ScrnFillRectangle (XtermWidget /* xw */, XTermRect *, int , unsigned /* flags */, Bool /* keepColors */);
extern void ScrnInsertChar (XtermWidget /* xw */, unsigned /* n */);
extern void ScrnInsertLine (XtermWidget /* xw */, ScrnBuf /* sb */, int /* last */, int /* where */, unsigned /* n */, unsigned /* size */);
extern void ScrnRefresh (XtermWidget /* xw */, int /* toprow */, int /* leftcol */, int /* nrows */, int /* ncols */, Bool /* force */);
@@ -1080,6 +1093,8 @@ extern void TabSet (Tabs /* tabs */, int /* col */);
extern void TabZonk (Tabs /* tabs */);
/* util.c */
+extern Boolean isDefaultBackground(const char * /* name */);
+extern Boolean isDefaultForeground(const char * /* name */);
extern GC updatedXtermGC (XtermWidget /* xw */, unsigned /* flags */, unsigned /* fg_bg */, Bool /* hilite */);
extern int AddToRefresh (XtermWidget /* xw */);
extern int ClearInLine (XtermWidget /* xw */, int /* row */, int /* col */, unsigned /* len */);
@@ -1220,6 +1235,7 @@ extern void putXtermCell (TScreen * /* screen */, int /* row */, int /* col */
#endif
#if OPT_WIDE_CHARS
+extern Boolean isWideControl(unsigned /* ch */);
extern int DamagedCells(TScreen * /* screen */, unsigned /* n */, int * /* klp */, int * /* krp */, int /* row */, int /* col */);
extern int DamagedCurCells(TScreen * /* screen */, unsigned /* n */, int * /* klp */, int * /* krp */);
extern unsigned AsciiEquivs(unsigned /* ch */);
@@ -1239,7 +1255,7 @@ unsigned visual_width(PAIRED_CHARS(Char * /* str */, Char * /* str2 */), Cardina
#define visual_width(a, b) (b)
#endif
-#define BtoS(b) ((b) ? "on" : "off")
+#define BtoS(b) (((b) == Maybe) ? "maybe" : ((b) ? "on" : "off"))
#define NonNull(s) ((s) ? (s) : "<null>")
#ifdef __cplusplus