Commit aa4ec8e0b40885024b8e655b107060dab145c3ea

Authored by perry.werneck@gmail.com
1 parent ee43ad7e
Exists in master

wip

latest/src/include/lib3270/api.h
... ... @@ -229,6 +229,7 @@
229 229 int rows;
230 230 int cols;
231 231 int cursor_addr;
  232 + char flipped;
232 233  
233 234 // Widget info
234 235 void * widget;
... ... @@ -243,6 +244,8 @@
243 244 struct lib3270_state_callback *st_callbacks[N_ST];
244 245 struct lib3270_state_callback *st_last[N_ST];
245 246  
  247 + /* Session based callbacks */
  248 +
246 249 } H3270;
247 250  
248 251 struct lib3270_state_callback
... ...
latest/src/lib/globals.h
... ... @@ -179,7 +179,7 @@ LIB3270_INTERNAL Boolean exiting;
179 179 LIB3270_INTERNAL Boolean *font_8bit;
180 180 #endif /*]*/
181 181  
182   -LIB3270_INTERNAL Boolean flipped;
  182 +// LIB3270_INTERNAL Boolean flipped;
183 183 LIB3270_INTERNAL char *full_current_host;
184 184 LIB3270_INTERNAL char *full_efontname;
185 185  
... ...
latest/src/lib/glue.c
... ... @@ -1009,7 +1009,7 @@ int *char_height = &ch;
1009 1009  
1010 1010 Boolean visible_control = False;
1011 1011  
1012   -Boolean flipped = False;
  1012 +// Boolean flipped = False;
1013 1013  
1014 1014 /* Replacements for functions in popups.c. */
1015 1015  
... ...
latest/src/lib/kybd.c
... ... @@ -1658,7 +1658,8 @@ LIB3270_CURSOR_ACTION( left )
1658 1658 return 0;
1659 1659 }
1660 1660 #endif /*]*/
1661   - if (!flipped)
  1661 +
  1662 + if (!h3270.flipped)
1662 1663 {
1663 1664 do_left();
1664 1665 }
... ... @@ -1801,7 +1802,7 @@ LIB3270_ACTION( backspace )
1801 1802 #endif /*]*/
1802 1803 if (reverse)
1803 1804 (void) do_delete();
1804   - else if (!flipped)
  1805 + else if (!h3270.flipped)
1805 1806 do_left();
1806 1807 else {
1807 1808 register int baddr;
... ... @@ -1919,7 +1920,7 @@ LIB3270_CURSOR_ACTION( right )
1919 1920 return 0;
1920 1921 }
1921 1922 #endif /*]*/
1922   - if (!flipped)
  1923 + if (!h3270.flipped)
1923 1924 {
1924 1925 baddr = h3270.cursor_addr;
1925 1926 INC_BA(baddr);
... ...
latest/src/lib/screen.c
... ... @@ -631,6 +631,9 @@ static void status_connect(H3270 *session, int connected, void *dunno)
631 631 static void status_3270_mode(H3270 *session, int ignored unused, void *dunno)
632 632 {
633 633 Boolean oia_boxsolid = (IN_3270 && !IN_SSCP);
  634 +
  635 + CHECK_SESSION_HANDLE(session);
  636 +
634 637 if(oia_boxsolid)
635 638 set_status(session,OIA_FLAG_UNDERA,True);
636 639 set_status(session,OIA_FLAG_BOXSOLID,oia_boxsolid);
... ... @@ -681,13 +684,15 @@ void ring_bell(void)
681 684 callbacks->ring_bell();
682 685 }
683 686  
684   -void
685   -screen_flip(void)
  687 +/*
  688 +void screen_flip(void)
686 689 {
687 690 flipped = !flipped;
688 691 screen_disp(&h3270);
689 692 }
  693 +*/
690 694  
  695 +/*
691 696 void
692 697 screen_132(void)
693 698 {
... ... @@ -697,6 +702,7 @@ void
697 702 screen_80(void)
698 703 {
699 704 }
  705 +*/
700 706  
701 707 /* Set the window title. */
702 708 void
... ...
latest/src/lib/screenc.h
... ... @@ -20,14 +20,15 @@
20 20 #define display_width() 1
21 21 // #define screen_obscured() False
22 22 #define screen_scroll() screen_disp()
  23 +#define screen_132() /* */
  24 +#define screen_80() /* */
  25 +
23 26  
24 27 LIB3270_INTERNAL void ring_bell(void);
25   -LIB3270_INTERNAL void screen_132(void);
26   -LIB3270_INTERNAL void screen_80(void);
27 28 LIB3270_INTERNAL void screen_erase(H3270 *session);
28 29 LIB3270_INTERNAL void screen_changed(H3270 *session, int bstart, int bend);
29 30 LIB3270_INTERNAL int screen_init(H3270 *session);
30   -LIB3270_INTERNAL void screen_flip(void);
  31 +// LIB3270_INTERNAL void screen_flip(void);
31 32 LIB3270_INTERNAL FILE *start_pager(void);
32 33 LIB3270_INTERNAL Boolean screen_new_display_charsets(char *cslist, char *csname);
33 34 LIB3270_INTERNAL void mcursor_locked();
... ...