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