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.

This blog post covers the two types of terminals available: a PASE shell, enhanced in 0.84 for faster launch, and a 5250 terminal.

VS Code for i 5250

Code for i explorer, RPGLE code, problems, outline view and 5250 terminal.

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.
VS Code for i Terminal Type

PASE Terminal

PASE terminal with automatic login

5250 terminal requirements and settings

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!

The Terminals tab in Settings lets you customize your terminal with several options. For example, 5250 Encoding specifies the CCSID mapping. 5250 Terminal Type includes numerous emulation types, including IBM-3180-2for a 132-column display.

Code for IBM i terminal settingsWith 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.

9 replies
  1. SIdnei
    SIdnei says:

    Hi.

    Does anyone knows hot to configure the 5250 Terminal in Visual Studio Code to use a screen size of 27×132 instead of 24×80?

    Thanks in advance for any help.

    Reply
  2. Ravisankar Pandian
    Ravisankar Pandian says:

    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

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.