Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please help me for using K #544

Open
cl-03 opened this issue Jun 15, 2019 · 4 comments
Open

please help me for using K #544

cl-03 opened this issue Jun 15, 2019 · 4 comments

Comments

@cl-03
Copy link

cl-03 commented Jun 15, 2019

there comes an error when I followed the 《K USER MANUAL》。on the page of 32,
I want the object displayed on the screen,by saying “show it”,
kona \ for help. \ to exit.
\d .server
\d customers
name:("Jones, B.G."; "Thomas, I.B.")
number: 63545 42554
balance: 1546 161
\d ^
"customerDb" 1: customers

\d .atm
credit_card_number: "xxxxx"
cash_amount: "xxx"
show $ credit_card_number
type error
show $ credit_card_number
^

@tavmem
Copy link
Collaborator

tavmem commented Jun 15, 2019

Well, first of all, I don't think that the GUI portion of k3 was ever implemented in kona.

Second, here is the result when I try k2.8 using Fedora:

$ rlwrap -n ./k
K 2.8 2000-10-10 Copyright (C) 1993-2000 Kx Systems
\ for help. \\ to exit.

  \d .server
  \d customers
  name:("Jones, B.G."; "Thomas, I.B.")
  number: 63545 42554
  balance: 1546 161
  \d ^
  "customerDb" 1: customers
  
  \d .atm
  credit_card_number: "xxxxxxx"
  cash_amount: "xxx"
  `show $ `credit_card_number
invalid font
domain error
`show $ `credit_card_number
      ^
> 

It looks like either

  • the font used in k2.8 does not exist in Fedora, or
  • the way to specify a font (in Fedora) has changed from what k2.8 assumed 15+ years ago.

I can also try k3.2 using Windows. I will let you know the result.

@tavmem
Copy link
Collaborator

tavmem commented Jun 15, 2019

Just an FYI:
k3.2 does work using Windows & Msys2 & MINGW32:

tavme@DESKTOP-FVKENU9 MINGW32 ~/k3.2
$ ./k
K 3.2 2005-06-25 Copyright (C) 1993-2004 Kx Systems
  \d .server
  \d customers
  name:("Jones, B.G."; "Thomas, I.B.")
  number: 63545 42554
  balance: 1546 161
  \d ^
  "customerDb" 1: customers

  \d .atm
  credit_card_number: "xxxxxxx"
  cash_amount: "xxx"
  `show $ `credit_card_number

The credit card number does get displayed as on page 32 of the K User Manual.

@tavmem
Copy link
Collaborator

tavmem commented Jun 15, 2019

I will leave this issue open as an enhancement.
Someone might attempt to implement the GUI in kona.

@bakul
Copy link
Contributor

bakul commented Jun 16, 2019

I haven't used the GUI in over 13 years!

I don't recall what the default fonts are for k3 but you can set env. var. KFONT and KLFONT to fonts that exist on your x-server. At least on FreeBSD this works (in linux emulation mode). One change I had to make was to replace "localhost" in the env. var DISPLAY to "127.0.0.1" -- otherwise it seemed to get resolved to an IPv6 address. Since I was using this over ssh, for me it was

export DISPLAY="127.0.0.1:10.0"

But not sure if is worth adding a GUI to kona. For one thing, user expectations these days are such that a barebones X11 window may not be good enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants