最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

configuration - Can I set ]Box and ]Rows settings for new installations of Dyalog? - Stack Overflow

programmeradmin3浏览0评论

Sometimes I install a new version of Dyalog and I have to re-set my ]Box and ]Rows settings.

]box on -fns=on
]rows on -fns=on -fold=3

I know I can set these and then save the session file, but I can't simply copy my old session file for use with a new version of Dyalog. It's not a lot of effort but would be one less thing to think about if I could set it in one place and fet about it.

Sometimes I install a new version of Dyalog and I have to re-set my ]Box and ]Rows settings.

]box on -fns=on
]rows on -fns=on -fold=3

I know I can set these and then save the session file, but I can't simply copy my old session file for use with a new version of Dyalog. It's not a lot of effort but would be one less thing to think about if I could set it in one place and fet about it.

Share Improve this question edited Mar 10 at 11:56 Adám 7,72623 silver badges38 bronze badges asked Mar 10 at 9:36 RikedyPRikedyP 7334 silver badges10 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

Edit: Reflect feedback from Adám's comment below.

One approach is to create a Run function under a subdirectory of ⎕SE.Dyalog.StartupSession.VerAgno, e.g. in .../StartupSession/rc/Run.aplf

∇Run
 ⎕SE.UCMD'←Box on -fns=on'
 ⎕SE.UCMD'←Rows on -fns=on -fold=3'
∇

where the characters suppress output.

Another approach, with caveats listed in Adám's comment below, is to set the LOAD variable to Run.aplf, i.e. your dyalog.dcfg would look something like this:

{ settings: {
    LOAD: "Run.aplf",
    ...
}}

and place Run.aplf in the same directory as your dyalog.dcfg.

If setup correctly, then when you start your session, you will see a message telling you that the script loaded: Loaded: #.RC from "path/to/your/RC.aplf". Granted, this approach is somewhat brute force and will cause problems if your script accumulates any version-specific code.

发布评论

评论列表(0)

  1. 暂无评论