According to your history.
Black coloured stools indicate that they is a bleed somewhere in the alimentary canal, from stomach to intestine.
In typhoid there will be multiple ulcers in the gastrointestinal tract, which is how the disease is, so the black coloured stools shows the bleed from some ulcer.
I do not say about perforation as I have to see you personally, but incase of perforation, you will have severe abdominal pain, fever, altered bowel habits and tight abdomen.
And yes ppi and antacids given is good which cures the ulcer in stomach.
You should continue the antibiotics also.
Next Steps
Have plenty of fluids
avoid spicy food
Go to the hospital immediately if you have pain abdomen.
Meet a general surgeon.