SOSDOEJQKNDORKSJA5YEG63NTY2SLOXTRTQ7CKBMDJYIUCLCHE7QC
O566A6VCVW5SZJHX25UK3GFNN53YYMIOHP7JPJX2DDWFKJDWKJ7AC
52NEZG2FJSEHUOZI72O7VEHXULPUHKTC4FPP7HSY3CNGKR4OPCCQC
I64IPGJXWRTGHHVAYJUBUIWFR4BY6NM5P7TLTV4JOD7K4BVYDECQC
IBXNUZM7R2OUGL5TDRF7OUFYY53GTZMEFQ5VJRFQF47P3VWDVDJAC
BULPIBEGL7TMK6CVIE7IS7WGAHGOSUJBGJSFQK542MOWGHP2ADQQC
XARRVCCHOAL3WIFQI4SPDV4PCUG2HZJAHTATXEX6VPTGJUMNMM6QC
MUJTM6REGQAK3LZTIFWGJRXE2UPCM4HSLXQYSF5ITLXLS6JCVPMQC
HLIF3YQENAUOE4DTSYBCDIRQVWLJ5VPVYC43OC3QP5HSHMCSVP4AC
2N3HLCOVSSOTQQULZRVXUQXGTOG4RBR6ZSSCY55JTB65GEYYNOFQC
EDRTD2YKYXX7R4NCJC757JIOVGDVJBQHFC3HYDD2ONDWMPFJOJ6AC
FZBXBUFFNRE5ZJO5DLRU375HOXT2B7FO35XD7BTHHUXSARVWDFLQC
BMGHJX7GIX535K2DU7ZT4EP2O6MYS7QVING22AAJABUY53K2PLFAC
HALS7E5UGKCP3DFY456F7Z3Y6WNGIABOCV2SHT34D5ZAGNCPV5PQC
GZ2OYPSHZU3FNO5HYP53EABOLM4C3TFPB5RGTIW2CJAWT6D2QXYQC
H2DPLWMVRFYTO2CQTG54FMT2LF3B6UKLXH32CUA22DNQJVP5XBNQC
UBA2ZUCP3JP5SGM2R5O5X5VP6DY64Y76MH65UPSHNWEUXRPZISPQC
PLKNHYZ4KXWWKC2DHXCI4WVO23I7VMEVYT5H2J6JDE4S3D3CHDJQC
local lo_px = Text.draw_highlight(State, line, State.left,y, pos, State.cursor1.pos, State.cursor1.pos+utf8.len(State.search_term))
App.color(fg or Text_color)
love.graphics.print(State.search_term, State.left+lo_px,y)
elseif hide_cursor then
Text.pretend_draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y)
else
Text.draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y, Cursor_color, fg or Text_color)
-- render fragment
App.color(Text_color)
App.screen.print(screen_line, State.left,y)
-- render colorized text
local x = State.left
for frag in screen_line:gmatch('%S*%s*') do
if fg then
App.color(fg)
else
select_color(frag)
end
App.screen.print(frag, x,y)
x = x+App.width(frag)
end