Visual Studio Code and 5250
With our latest version of Code for IBM i, developers have access to virtually everything they need when writing both RPG and open source applications, all in a single editor.
Version 0.8.4 provides your choice of a 5250 terminal or a PASE shell right in the editor—with a new, faster launch process.
Faster PASE terminal launch
Previously, when bringing up the PASE (SSH) environment in the VS Code terminal, you were prompted for your user and password. While this worked well, you were essentially logging in to your system twice, since you would have already connected to it when using Code for IBM i.
Now, assuming you have connected to your system using Code for IBM i, you can select the PASE (SSH) terminal using the Terminals button and be logged in automatically.
As shown below, clicking the Terminals button at the bottom of your screen will launch a quick-pick menu at the top of your screen, where you can select the type of Terminal you want. If you choose PASE, Code for IBM i will use your existing authenticated connection to open the terminal.
5250 terminal requirements
The only requirement to launching a 5250 emulator is to have tn5250 installed, a terminal client for the IBM i that emulates 5250 terminals. This can be installed via yum. Once you have it installed, you’re good to go!
Code for IBM i provides additional settings so you can set up your terminal however you like. The most common setting is likely the CCSID mapping configuration, which lets you set the encoding for the terminal.
With these enhancements to Code for i, you can access not only your code, but 5250 terminals and PASE shells as well. Personally, I’ve found it saves me lots of time to have everything I need within the IDE.
Code for IBM i is completely free and open source.
If you have not yet tried VS Code for IBM i, you’ll find installation instructions here and a more complete list of resources at Visual Studio Code for IBM i: A Resource Guide.
Hi, I have installed the TN5250 version 0.17.5-3 using yum. But still I am getting the below error message when I try to spawn a 5250 terminal from VS Code.
5250 terminal is not supported. Please install tn5250 via yum on the remote system.
Do I need to open any port#?
Please help!
Thanks,
Ravi
Please report this issue to the Code for i Team and let us know how it goes. Instructions on reporting an issue are here: https://www.seidengroup.com/2023/07/10/how-to-report-an-issue-with-vs-code-for-ibm-i/
Hi Alan,
Thank you for the heads up. I created an issue in the Github repo and got it resolved. I really appreciate help.
https://github.com/halcyon-tech/vscode-ibmi/issues/1434
Thanks,
Ravisankar P.
Excellent, Ravisankar!
Hi Ravisankar,
it seems I am running into the same issue.
Could you share your solution for this ?
I’m having the same message
Help!