You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I enabled the Code for IBM i settings Show SEU Colors. I assumed this option is designed to scan a source line for 5250 display attributes (hex codes x20-x3F (and technically, xA0-xBF) and display the corresponding (default) 5250 emulation color.
After restarting, I opened a source member that made use of the 5250 display attribute hex codes to colorize a table in lines of comments. It appears that this setting is only detecting the first hex code.
The expectation is that each 5250 display attribute would be interpreted, thus allowing a single line of source to contain multiple colors. The end of the source line should assume a terminating display attribute of x20 (Normal) to ensure colorization is not "wrapped" to the next line.
In the following example, the table border should be shown in blue, the row title should be reverse image, the term should be highlighted, and the description should be normal. The table uses the following 5250 emulation display attributes:
x20 = Green text
x22 = White (highlighted) text
x23 = Reverse image, white (white background, black text)
x34 = Blue text
**FREE
///
// Handles SEU user line commands.
//
// +------------------------------------------------------------------+
// | PASS 1 COMMANDS - DISPLAY/NON-ALTERING COMMANDS |
// +------------------------------------------------------------------+
// | TERM | Description of term. |
// |---------+--------------------------------------------------------|
// | TERM | Description of term. |
// +---------+--------------------------------------------------------+
///
*inLR = *ON;
return;
Focusing on the lines with the 5250 display attributes, they are shown with the hex values below, with the corresponding locations in the human-readable line being identified with ?:
Also note there is a display problem that renders some characters as non-display. The highlight in the following image shows text that is rendered as non-display. The text is there, one can copy it and/or search for it, but it just does not appear on the screen. In the example, the most common error is the word "Display". On the first line of the description of the term it is rendered on the screen as "Di play". However, if you select "Di play" and cut-n-paste, it pastes the actual word "Display". Likewise, searching for the word "Display" will find "Di play". I tried a few different themes and resizing my window, nothing caused the hidden characters to appear.
(The highlight in the left-most column, is to point out that each term is missing the first character. Each term should begin with a "U" ... UDC, UDCM, UDDM, etc.)
And yes, I do realize the irony in positing an issue in Code for IBM i about colorizing source based on SEU/5250 display attribute codes and providing as an example source comments from an SEU user line command exit program.
Context
Version
Code for IBM i version
2.14.5
Visual Studio Code version
1.96.2
Operating System
win32_x64
Active extensions
.NET Install Tool (vscode-dotnet-runtime): 2.2.3
COBOL (cobol): 24.12.18
Code Coverage for IBM i (code-coverage-ibmi): 0.1.7
Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.5.0
Configuration Editing (configuration-editing): 1.0.0
Db2 for IBM i (vscode-db2i): 1.7.0
Dev Containers (remote-containers): 0.394.0
ESLint (vscode-eslint): 3.0.10
Emmet (emmet): 1.0.0
Error Lens (errorlens): 3.22.0
Extension Authoring (extension-editing): 1.0.0
Git (git): 1.0.0
Git Base (git-base): 1.0.0
GitHub (github): 0.0.1
GitHub Authentication (github-authentication): 0.0.2
GitHub Pull Requests (vscode-pull-request-github): 0.102.0
GitLens — Git supercharged (gitlens): 16.1.1
HTML CSS Support (vscode-html-css): 2.0.11
IBM i Notebooks (vscode-ibmi-notebooks): 0.0.6
IBM i Project Explorer (vscode-ibmi-projectexplorer): 2.12.0
JSON Language Features (json-language-features): 1.0.0
Jira and Bitbucket (Atlassian Labs) (atlascode): 3.2.1
Merge Conflict (merge-conflict): 1.0.0
NPM support for VS Code (npm): 1.0.1
Node Debug Auto-attach (debug-auto-launch): 1.0.0
Nx Console (angular-console): 18.34.0
Path Intellisense (path-intellisense): 2.10.0
Prettier - Code formatter (prettier-vscode): 11.0.0
RPGLE (vscode-rpgle): 0.28.5
Reload (reload): 0.0.7
Source Orbit (vscode-sourceorbit): 1.0.2
TODO Highlight (vscode-todo-highlight): 1.0.5
Todo Tree (todo-tree): 0.0.226
TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0
WSL (remote-wsl): 0.88.5
YAML (vscode-yaml): 1.15.0
I enabled the Code for IBM i settings
Show SEU Colors
. I assumed this option is designed to scan a source line for 5250 display attributes (hex codes x20-x3F (and technically, xA0-xBF) and display the corresponding (default) 5250 emulation color.After restarting, I opened a source member that made use of the 5250 display attribute hex codes to colorize a table in lines of comments. It appears that this setting is only detecting the first hex code.
The expectation is that each 5250 display attribute would be interpreted, thus allowing a single line of source to contain multiple colors. The end of the source line should assume a terminating display attribute of x20 (Normal) to ensure colorization is not "wrapped" to the next line.
In the following example, the table border should be shown in blue, the row title should be reverse image, the term should be highlighted, and the description should be normal. The table uses the following 5250 emulation display attributes:
Focusing on the lines with the 5250 display attributes, they are shown with the hex values below, with the corresponding locations in the human-readable line being identified with
?
:Also note there is a display problem that renders some characters as non-display. The highlight in the following image shows text that is rendered as non-display. The text is there, one can copy it and/or search for it, but it just does not appear on the screen. In the example, the most common error is the word "Display". On the first line of the description of the term it is rendered on the screen as "Di play". However, if you select "Di play" and cut-n-paste, it pastes the actual word "Display". Likewise, searching for the word "Display" will find "Di play". I tried a few different themes and resizing my window, nothing caused the hidden characters to appear.
(The highlight in the left-most column, is to point out that each term is missing the first character. Each term should begin with a "U" ...
UDC
,UDCM
,UDDM
, etc.)Active extensions
Remote system
Enabled features
Shell env
Variants
The text was updated successfully, but these errors were encountered: