Menu

#94 Screenio overwrites last character of field with first character of next field

GC 2.2
closed
1 - highest
2017-04-10
2014-09-05
Louis Krupp
No

Screenio backspaces before displaying fields. If two fields are adjacent, the first character of the second field overwrites the last character of the preceding field. For example, this screen section (adapted from the example for bug 35):

::cobol
       screen section.
       01  OffD-Maint-Scrn-Skills-SMenu
           BACKGROUND-COLOR 1 FOREGROUND-COLOR 2.
          05  BLANK SCREEN.
          05  LINE Window-UpperLeft-Corner-Line
              COL Window-UpperLeft-Corner-Column
              VALUE "1234".
          05  value "567".
          05  value "8".
          05  value "9".

displays "123569".

A potential patch is attached.

1 Attachments

Related

Bugs: #246
Discussion: 2.0 might be leaving out spaces in the screen section
Discussion: SCREEN SECTION - POSITION ERROR

Discussion

  • Louis Krupp

    Louis Krupp - 2014-09-05

    Sample program is attached.

     
  • PatMcC

    PatMcC - 2014-11-12

    Hi

    Sorry for my stupidity. I downloaded the patch but I don't know how to apply it. Is it possible to just copy and paste the C code somewhere in screenio? Or could you point me to a tutorial?

    -Patrick

    P.S this shoud have been arressed to Louis, sorry Louis

     

    Last edit: PatMcC 2014-11-12
    • Simon Sobisch

      Simon Sobisch - 2014-11-13

      No problem to ask here. Patchfiles can be applied with the patch command in linux

      cd libcob
      

      and then either (like in this case)

      patch < patch
      

      or

      patch screenio.c patch
      

      (the second "patch" is the downloaded patch file), maybe check the first nice diff/patch tutorial I've stumbled upon.

      In Windows I personally use WinMerge or TortoiseMerge if I'm currently not in MSYS/MinGW or cygwin where using the patch command is likely.

      Simon

      BTW: This wasn't posted to the mailing list (at least I didn't received it via the list).

       
  • Simon Sobisch

    Simon Sobisch - 2014-12-03
    • status: open --> pending
    • assigned_to: Simon Sobisch
     
  • Edward Hart

    Edward Hart - 2016-05-21
    • status: pending --> closed
    • Priority: 5 --> 1 - highest
     
  • Edward Hart

    Edward Hart - 2016-05-21

    This bug is no longer present as of [r888].

     
  • Edward Hart

    Edward Hart - 2016-05-21
    • labels: --> screen section
     

Log in to post a comment.

MongoDB Logo MongoDB