rxi / lite

A lightweight text editor written in Lua
MIT License
7.42k stars 353 forks source link

Is there way to change background text on start window? #238

Closed uvicorn closed 3 years ago

uvicorn commented 3 years ago

изображение I want to view current time on this spot

Tmpod commented 3 years ago

That text drawing is done by a local function draw_text in core/rootview.lua which is used in EmptyView:draw. You could extend the latter and insert a renderer.draw_text call with something like os.date("%a %x %X", os.time()) in it. Alternatively you could just edit the actual core file.