Skip to content

Add WIDTH keyword to FTAB_PRINT, TBPRINT & FTPRINT, in order to pass it to OPENW in TEXTOPEN #41

@LucioBaggio

Description

@LucioBaggio

The procedure TEXTOPEN has a WIDTH keyword argument to pass down to OPENW. There is no way to set this keyword from higher level calls like TBPRINT, FTPRINT or FTAB_PRINT.

Without that parameter, down the line IDL will default to 80 characters per line when writing to a file. Notice that FTAB_PRINT will not wrap lines when the output is the terminal (provided the terminal is wide enough), but it will do invariably when the output is redirected to file.

Suggested modification: add WIDTH=width to TEXTOPEN calls in TBPRINT & FTPRINT, add correspondingly WIDTH=width to their named argument list, then add WIDTH=width to TBPRINT & FTPRINT calls in FTAB_PRINT, and finally expose WIDTH=width as named argument to FTAB_PRINT.

In this way, when printing to file via FTAB_PRINT a long series of columns exceeding 80 characters, one can add e.g. WIDTH=10000 or something similar to effectively disable any automatic line wrap down the line.

Nice to have: WIDTH='*' could be used to imply that the width parameter could be computed automatically in order to achieve the same result in a more explicit manner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions